EIT Agent
登录
← 校园网页目录

校园网页 · 学校官网

An Efficient Spectral-Projection Method for the Navier–Stokes Equations in Cylindrical Geometries

←ψ← ← ← ← ← JOURNAL OF COMPUTATIONAL PHYSICS 139, 308–326 (1998) ARTICLE NO. CP975872 An Efficient Spectral-Projection Method for the Navier–Stokes Equations in Cylindrical Geometries I. Axisymmetric Cases J. M. Lopez∗,†and Jie Shen∗ ∗Department of Mathematics and†Earth System Science Center, Pennsylvania State University, University Park, Pennsylvania 16802 E-mail: shen j@math.psu.edu Received June 6, 1996; revised August 7, 1997 An efficient and accurate numerical scheme is presented for the axisymmetric Navier–Stokes equations in primitive variables in a cylinder. The scheme is based on a new spectral-Galerkin approximation for the space variables and a second- order projection scheme for the time variable. The new spectral-projection scheme is implemented to simulate the unsteady incompressible axisymmetric flow with a singular boundary condition which is approximated to within a desired accuracy by using a smooth boundary condition. A sensible comparison is made with a standard second-order (in time and space) finite difference scheme based on a stream function- vorticity formulation and with available experimental data. The numerical results indicate that both schemes produce very reliable results and that despite the singular boundary condition, the spectral-projection scheme is still more accurate (in terms of a fixed number of unknowns) and more efficient (in terms of CPU time required for resolving the flow at a fixed Reynolds number to within a prescribed accuracy) than the finite difference scheme. More importantly, the spectral-projection scheme can be readily extended to three-dimensional nonaxisymmetric cases. c⃝1998 Academic Press 1. INTRODUCTION The main purpose of this paper and its sequel is to develop and validate an efficient and ac- curate numerical scheme for the Navier–Stokes equations (NSE) in cylindrical geometries. We shall restrict ourselves in this paper to the axisymmetric case. The scheme presented here will provide essential ingredients for the three dimensional nonaxisymmetric scheme to be considered in a subsequent study. 308 0021-9991/98 $25.00 Copyright c⃝1998 by Academic Press All rights of reproduction in any form reserved. ← ← ψ ψ( EFFICIENT SPECTRAL-PROJECTION METHOD 309 The equations governing the flow are the axisymmetric NSE, together with initial and boundary conditions. It is convenient to use a cylindrical coordinate system ( r,θ,z). Due to the azimuthal symmetry, the flow depends spatially on only two cylindrical coordinates (r, z). We denote the corresponding velocity and vorticity vectors, in cylindrical coordinates, respectively by u= (u,v,w) T, ω= (ξ,η,ζ)T. For axisymmetric flows, it is usually convenient to introduce a Stokes stream functionψand to write the Navier–Stokes equations in terms ofψ,η, and0= rv. In this way, the pressure is eliminated via cross-differentiation, and the continuity equation is automatically satisfied. However, such a formulation does not generalize readily to the nonaxisymmetric situation. In order to develop a scheme which can be easily extended to nonaxisymmetric flows, the velocity pressure formulation is adopted. Note, however, that the standard finite difference code that we compare with in Section 4 is in the stream function-vorticity formulation. The equations governing the axisymmetric flows in the velocity-pressure formulation are u t+ uur+wuz−1 rv2=−Pr+ 1 Re ( ˜∇2u−1 r2 u ) , (1.1) vt+ uvr+wvz+ 1 r uv= 1 Re ( ˜∇2v−1 r2v ) , (1.2) wt+ uwr+wwz=−Pz+ 1 Re ˜∇2w, (1.3) 1 r(ru)r+wz= 0, (1.4) where ˜∇2= ∂2 r + 1 r∂r+∂2 z (1.5) is the Laplace operator in axisymmetric cylindrical coordinates. The equations (1.1)–(1.4) have been nondimensionalized with the radius of the cylinder R as the length scale and 1/˜ as the time scale, where˜ rad s−1 is a characteristic rotation rate of the system. The Reynolds number is Re=˜R2/ν, whereνis the kinematic viscosity. The flow is governed by another nondimensional parameter, the aspect ratio of the cylinder 3= H/ R, where H is the height of the cylinder. Therefore, the domain for the space variables ( r, z)i st h e rectangle(0, 1)×(0,3). The equations are to be completed with admissible initial and boundary conditions. Although a finite difference or finite element approximation can be used for the space variables, it appears that a spectral approximation [3, 10] is more appealing in this case because of its ability to resolve thin boundary layers of viscous flows with relatively few collocation points and because of the simplicity of the computational domain. Hence, we shall use a spectral approximation for the space variables. In order to solve the time dependent problem (1.1)–(1.4) efficiently, it is general practice, especially for spectral approximations, to treat the nonlinear terms explicitly. With this in mind, we still face the difficulty associated with the incompressibility constraint (1.4) which couples the two velocity components u,w and the pressure p. This difficulty can be ←ψ ← ← ψ ( ← 310 LOPEZ AND SHEN overcome by using the so-called influenced matrix method [39]. However, this approach may become prohibitively expensive for long time computations and for three-dimensional simulations. A more efficient way to deal with this coupling is to use a projection (fractional step) method which was originally proposed by Chorin [4] and Temam [37]. In the next section, we will introduce a second-order semi-implicit projection scheme for the axi- symmetric NSE. In addition to its remarkable efficiency and accuracy, the scheme has the distinct advantage that it can be easily extended to nonaxisymmetric three-dimensional cases. Note that the apparent coordinate singularity (at r= 0) is not of an essential nature and can be handled naturally by using an appropriate variational formulation [30]. In short, we shall develop a spectral-projection scheme which consists of a time discretization by a second-order projection scheme and a space discretization by a spectral-Galerkin method. We shall use the scheme to simulate the axisymmetric unsteady incompressible flow which is driven by a rotating bottom with constant angular speed. This problem has been extensively studied both numerically (e.g., [2, 5, 16, 18, 20, 21, 24, 26, 34, 38]) and exper- imentally (e.g., [8, 27, 35, 41]). Problems of this type continue to be of great interest in a wide range of areas, such as the study of wind-forced ocean gyres [12], flow instabilities and the transition to turbulence in rotating systems [11], and the study of boundary layers in rotating systems [14, 17, 19]. Because of its simplicity in formulation and its complexity in dynamics, the present problem is an excellent benchmark problem for axisymmetric flows, just as the driven cavity problem is for two-dimensional flows in Cartesian coordinates. To evaluate the relative merit of our scheme, we shall make a detailed comparison with a standard second-order (in time and space) finite difference scheme (see Appendix A) based on a stream function-vorticity formulation and with available experimental data. 2. A SECOND-ORDER PROJECTION SCHEME FOR TIME DISCRETIZATION We consider the axisymmetric unsteady incompressible flow which is driven by a rotating bottom with constant angular speed. The boundary conditions for this problem are that the top endwall and the sidewall are stationary, so all components of velocity there are zero, and the bottom endwall is rotating at constant angular speed ˜ ,s o u= w= 0 andv= r at z= 0. The axis condition is straightforward in the axisymmetric case and is given by u= v= w r = 0a t r= 0. To simplify the presentation, we introduce the notations ˜1=   ˜∇2−1/ r2, 0, 0 0, ˜∇2−1/ r2, 0 0, 0, ˜∇2  , ˜∇=   ∂r 0 ∂z,  , D={ (r, z): r∈(0, 1)and z∈(0,3)}, 01={ (r, z): r∈(0, 1)and z= 0},0 2={ (r, z): r= 0 and z∈(0,3)}, and rewrite the Eqs. (1.1)–(1.4) in vector form, ut+ N(u)=−˜∇p+ 1 Re ˜1u, ˜∇·u := 1 r(ru)r+wz= 0, (2.1) u|∂D\(01∪02)= 0, u|01 = (0, r, 0)T,( u,v,w r)T|02 = 0, ←ψ ← ← ψ ← EFFICIENT SPECTRAL-PROJECTION METHOD 311 where u= (u,v,w)T and N(u) is the vector containing the nonlinear terms in (1.1)– (1.3). To overcome the difficulties associated with the nonlinearity and the coupling of ve- locity components and the pressure, we propose the following semi-implicit second-order projection scheme for the system of Eqs. (2.1), 1 2δt(3˜uk+1−4uk+ uk−1)−1 Re ˜1˜uk+1=−˜∇pk−(2N(uk)−N(uk−1)), ˜uk+1|∂D\(01∪02)= 0, ˜uk+1|01 = (0, r, 0)T,( ˜uk+1, ˜vk+1, ˜wk+1 r )T|02 = 0. (2.2) 1 2δt(uk+1−˜uk+1)+ ˜∇(pk+1−pk)= 0, ˜∇·uk+1= 0, (uk+1−˜uk+1)·n|∂D= 0, (2.3) whereδt is the time step, n is the outward normal at the boundary, and˜uk+1= (˜uk+1, ˜vk+1, ˜wk+1)T and uk+1= (uk+1,v k+1,w k+1)T are respectively the intermediate and final approx- imations of u at time t= kδt. The scheme is in the same class as the second-order pressure-correction projection scheme of [40] (see also [1]). The linear parabolic operator here is approximated by a second-order backward scheme which appears to be more stable than the Crank–Nicholson scheme, while the nonlinear terms are approximated by a second-order extrapolation to avoid solving a nonlinear system at each time step. It is easy to see that ˜u k+1 can be determined from (2.2) by solving three Helmholtz-type equations. Instead of solving for ( uk+1, pk+1) from the coupled first-order differential equations (2.3), we apply the operator “ ˜∇·” (see the definition in (2.1)) to the first equation in (2.3) to obtain an equivalent system −˜∇2(pk+1−pk)= 1 2δt ˜∇·˜uk+1, ∂n(pk+1−pk)|∂D= 0, (2.4) and uk+1= ˜uk+1−2δt ˜∇(pk+1−pk). (2.5) Thus,(uk+1, pk+1)can be obtained by solving an additional Poisson equation (2.4). Note that the equivalence between (2.4)–(2.5) and (2.3) will be no longer valid once the space variables are discretized. However, numerous numerical experiments and the theoretical justification in [33] indicate that this approach does not affect the second-order accuracy in time for the velocity. In the next section, we present an efficient spectral-Galerkin method for solving these equations. 3. SPECTRAL–GALERKIN APPROXIMATIONS FOR AXISYMMETRIC ELLIPTIC EQUATIONS We first transform the domainD to the unit squareD∗= (−1, 1)×(−1, 1)by using the transformations r= (y+ 1)/2 and z= 3(x+ 1)/2. Then, at each time step, the systems ←ψ ← ← ψ (← ← 312 LOPEZ AND SHEN (2.2) and (2.4) lead to the following four Helmholtz-type equations: αu−βuxx −1 y+ 1((y+ 1)uy)y+ γ (y+ 1)2 u= f inD∗, u|∂D∗= 0. (3.1) αv−βvxx −1 y+ 1((y+ 1)vy)y+ γ (y+ 1)2v= g inD∗, v|∂D∗\0∗ 1 = 0,v |0∗ 1 = 1 2(y+ 1). (3.2) αw−βwxx −1 y+ 1((y+ 1)wy)y= h inD∗, w|∂D∗\0∗ 2 = 0,w r|0∗ 2 = 0. (3.3) −βpxx −1 y+ 1((y+ 1)py)y= q inD∗, ∂n p|∂D∗= 0. (3.4) In the above,0∗ 1={ (x, y): x=−1 and y∈(−1, 1)},0∗ 2={ (x, y): x∈(−1, 1)and y= −1},α= 3 8 Re/δt,β= 3−2,γ= 1, and f, g, h, q are known functions, depending on the solutions at the two previous time steps. In [30], an efficient and accurate spectral-Galerkin method was proposed for solving elliptic equations in polar and cylindrical geometries. It was found that the spectral-Galerkin method in [30] is as good, if not more efficient and accurate, as other spectral methods (see, for instance, [7, 23]) which take into account the parity factor (aboutr= 0) satisfied by the solutions. It should also be noted that the clustering of the collocation points near r= 0 in this case will not introduce unreasonable time step restrictions as long as the principle linear operator is treated implicitly (cf. [25]). The spectral-Galerkin method is based on a variational formulation which naturally incorporates the pole conditions and takes care of the coordinate singularity at r= 0. For axisymmetric problems, there are no pole conditions but the coordinate singularity atr= 0 is still present. The spectral-Galerkin method of [30] can be directly applied to (3.1)–(3.4). We shall discuss the method for solving (3.1) in some detail. The three other equations can be treated similarly. Let P K be the space of all polynomials of degree less than or equal to K and PNM = PN×PM .W es e t XNM ={ w∈PNM :w|∂D∗= 0}. Then the spectral-Galerkin method for (3.1) is to find uNM ∈XNM such that α((y+ 1)uNM,v)˜ω−β ( (y+ 1)∂2 x uNM,v ) ˜ω− ( ((y+ 1)∂yuNM)y,v ) ˜ω +γ ( 1 y+ 1uNM,v ) ˜ω = ((y+ 1)f,v)˜ω ∀v∈XNM, (3.5) where(u,v)˜ω= ∫ D∗uvω(x)ω(y)dx dy withω(s)to be respectively 1 or (1−s2)−1/2, depending on whether Legendre or Chebyshev polynomials are used. The Eq. (3.5) is derived by first multiplying (3.1) by (y+ 1)ω(x)ω(y)and then integrating overD ∗. The ← ← ψ (← EFFICIENT SPECTRAL-PROJECTION METHOD 313 multiplication by ( y+ 1) is natural since the Jacobian of the transformation from the Cartesian coordinates to cylindrical coordinates is r= ((y+ 1)/2)in the axisymmetric case. Since uNM = 0a t y=−1, we see that all terms in (3.5) are well defined and that no singularity is present. The efficiency of the method depends on the choice of basis function for XNM . The general strategy for choosing basis functions was discussed in [30, 32]. For this problem, it is easy to verify that X NM = span{φi(x)ρj(y): i= 0, 1,..., N−2; j= 0, 1,..., M−2}, with φl(s)=ρl(s)= pl(s)−pl+2(s), where pl(s)is either the lth degree Legendre or Chebyshev polynomial. Setting uNM = N−2∑ i= 0 M−2∑ j= 0 uijφi(x)ρj(y), and aij = ∫1 −1 φj(x)φi(x)ω(x)dx, bij =− ∫1 −1 φ′′ j(x)φi(x)ω(x)dx, cij = ∫1 −1 (y+ 1)ρj(y)ρi(y)ω(y)dy, dij =− ∫1 −1 ( (y+ 1)ρ′ j(y) )′ ρi(y)ω(y)dy, eij = ∫1 −1 1 y+ 1ρj(y)ρi(y)ω(y)dy, fij = ∫ D (y+ 1)f ρj(y)φi(x)ω(x)ω(y)dx dy, (3.6) and letting A, B, C, D, E, F, andU be the corresponding matrices with entries given above. Then, (3.5) is equivalent to the following matrix system: αAUC+βBUC+ AU D+γAU E= F. (3.7) Note that eij is well defined despite the term 1/(y+ 1)sinceρi(−1)= 0. In the Legendre case, the matrices A, B, C, D, and E are all symmetric and sparsely banded, while in the Chebyshev case, only A, C, and E are symmetric and sparsely banded, but B and D are respectively full triangular and Hessenburg matrices with special structures (see [30] for more details). Hence, (3.7) can be efficiently solved by using the matrix diagonalization method [22, 30] at a cost of 4 NM min(N, M)+ O(NM)operations. Note, however, that in the Legendre case this operation count can be reduced toO(NM log(N+ M))(see [32] for further details). ←ψ ← ψ ( 314 LOPEZ AND SHEN 4. NUMERICAL RESULTS AND COMPARISON WITH A STANDARD FINITE DIFFERENCE METHOD 4.1. Treatment of the Singular Boundary Condition The boundary condition forv is discontinuous at the lower right corner (r= 1, z= 0). This is a physical singularity and it represents the fact that in this enclosed system, all the vortex lines emanate from the rotating endwall, and, since they cannot terminate on the stationary walls nor in the interior of the fluid, they all terminate at the corner singularity. The form of this singularity is kinematic, it does not change with Re. We should emphasize that this singular boundary condition is a mathematical idealization of the physical situation, where there is a thin gap (usually on the order of 0.02R, as in [35]) over whichv adjusts from 1.0 on the edge of the rotating endwall to 0.0 on the sidewall. Therefore, it is appropriate to use a regularized boundary condition (so thatv is continuous) which is representative of the actual gap between the rotating endwall and the stationary sidewall in experiments. In finite difference or finite element schemes, the singularity is usually regularized over a few grid spacings in the neighborhood of the corner. However, this simple treatment leads to a mesh-dependent boundary condition which in turn results in mesh-dependent solutions which prevents a sensible comparison between solutions with different meshes. Essentially, the grid spacing represents the physical gap size. Alternative schemes have successfully treated singularities by, for example, using crack tip singular finite elements in the neighborhood of the singularity (see, for example, [9]), or by adding a Navier slip coefficient (see, for example, [28]). The singular boundary condition at r= 1i s v(z)= 1a t z= 0,v (z)= 0 for 0 < z≤3, which is similar to that of the driven cavity problem. Unless this singularity is treated ap- propriately, spectral methods may have severe difficulty dealing with it. In the past, most computations with spectral methods avoided this difficulty by using regularized bound- ary conditions which, unfortunately, do not approximate the physical boundary condition (e.g., [6, 31]). The authors of [15], used an ad hoc procedure which corresponds to ap- proximatingv by a polynomialv M (of degree M) such thatvM(z0)= 1,v M(z1)= 0.3, and vM(zi)= 0 for i= 2,..., M, where{zi}are the Gauss–Lobatto collocation points in [0,3 ]. Although reasonably accurate results were obtained by using this procedure, it will produce mesh-dependent solutions and, furthermore, it introduces nonsmoothness into the computed solutions (see Fig. 4.2). Note that alternatively it is also possible to treat the singularity by subtracting the leading singular part as in [29]. We propose using the boundary layer function, v ε(z)= exp ( −2z 3ε ) , which has the ability to approximate the singular boundary condition to within any pre- scribed accuracy. Outside a boundary layer of widthO(ε),vε(z), converges tov(z)exponen- tially asε→0. However, for a givenε, approximatelyε−1/2 collocation points are needed to represent the boundary layer functionvε. In other words, for a fixed number of modesM, ←ψ ← ψ ψ ψ EFFICIENT SPECTRAL-PROJECTION METHOD 315 FIG. 1. Variation of IMvε(with3= 2.5) in the vicinity of the singularity at z= 0 for (a) ε= 0.006 and (b)ε= 0.003, and various M as indicated. we can only use ε≥ε(M), whereε(M)can be approximately determined by comparing IMvεandvε, where IMvεis the polynomial interpolation ofvεat the Gauss–Lobatto points. Although it is virtually impossible to match the exact physical condition in the experi- mental gap region, the functionvεwithε= 0.006 does provide a reasonable representation of the experimental gap. The functionvεcan be resolved spectrally with M≥Mεmodes, where Mεis such that IMvεfor a givenεis nonoscillatory. Due to the nonlinear termv2/ r in (1.1), we also require thatIMvε/2 be nonoscillatory (since (vε)2= vε/2). Figure 1a shows IMv0.006 for various M. It is clear that I48v0.006 is nonoscillatory. However, from Fig. 1b we see that I48v0.003 is oscillatory near z= 0, while I64v0.003 is not. Thus, M≈64 is required forε= 0.006. Figure 2 shows plots of the solution for Stokes flow (Re = 0) for this problem. The governing equations (1.1)–(1.4) in the case Re= 0 reduce to ˜∇2v−(1/ r2)v= ˜∇20= 0, with0= 0 on the axis, top endwall, and sidewall, and 0= r2 on the rotating bottom endwall. The singular boundary condition on the sidewall has been regularized in Fig. 2a withv 0.006 and in Fig. 2b with the ad hoc method. For the solution of the Stokes problem withε= 0.006, we judge that the error is acceptably small at M= 64 and is very small at M= 80. The measure of error used here is the largest value of negative0 of the computed solution at the grid points of a uniform 201 ×501 mesh; the true solution has 0≥0. These values are listed in Table 1. In contrast, with the ad hoc method the error does not decrease as M increases and the computed solutions exhibit large errors for all values ofM considered. 4.2. Numerical Results and Discussion In order to make sensible comparisons between the spectral code and the finite difference code (see Appendix A) and between cases with different finite difference grids, vε(z)is ←ψ← ← ψ ←ψ ψ ← 316 LOPEZ AND SHEN FIG. 2. Contours of0 for Stokes flow (Re= 0), using (a)v0.006 and (b) the ad hoc regularization of the corner singularity. The leftmost plot in each set has N= 56, M= 80, the middle plots have N= 48, M= 64, and the right plots have N= 40, M= 48. All have been projected on to 201 uniform radial locations and 501 uniform axial locations. used here as the boundary condition on v at r= 1 in both codes, and the single value of ε= 0.006 is used throughout. Note that εcan be regarded as another dynamic parameter representative of the physical gap at the corner. We use the spectral-projection scheme and the finite difference code to solve our problem at two different Reynolds numbers with3= 2.5. The first corresponds to a steady solution at Re= 2494. This Re is large enough that boundary layers are thin (thicknessO(Re−1/2)), but small enough that the flow becomes steady. The primary interest here is to determine the level of spatial resolution required for an asymptotically grid/mode independent solution for each scheme. We shall, however, also consider the transients during the evolution to the steady state, as the time-accuracy of the schemes is also of interest. The second test case is the periodic flow at Re= 2765. We compare both the transients and the limit cycle solutions from the two schemes. Both test cases are well documented, both experimentally [8] and numeri- cally [16, 18]. Recent experiments [35] indicate that the flow is unstable to nonaxisymmetric perturbations for Re≥3500, so we leave the consideration of higher Reynolds number cases to the subsequent paper dealing with nonaxisymmetric three-dimensional flows. For all cases, we use rest as the initial condition and impulsively start the bottom endwall rotating att= 0. Although the temporal singularity att= 0 does affect the initial transients, Heywood and Rannacher [13] have proven that it has no effect on the characteristics of the final asymptotic solutions. TABLE 1 Largest Negative Values ofΓ on the Grid Points of a 201×501 Uniform Mesh, Corresponding to the Solutions for Stokes Flow Shown in Fig. 2 N, M min(0) withε= 0.006 min( 0) with ad hoc b.c. 56, 80 −2.472×10−6 −4.786×10−3 48, 64 −9.002×10−6 −6.510×10−3 40, 48 −1.633×10−4 −6.444×10−3 ←← ψ ψ EFFICIENT SPECTRAL-PROJECTION METHOD 317 FIG. 3. Contours ofψ,η, and0 for Re= 2494 and3= 2.5a t t= 3000. Solutions are from spectral compu- tations withδt= 0.04 andε= 0.006 and N and M as indicated. All have been projected on to 201 uniform radial locations and 501 uniform axial locations. We begin by determining the level of resolution needed for a spectral computation of the case with Re = 2494,3 = 2.5, and ε= 0.006. From the Stokes flow problem, we have seen that forε= 0.006, the proper treatment of the singularity at the corner requires M≈64. Figure 3 shows the solutions att= 3000, which are essentially at steady state (i.e., changes in any quantity being less than 1 part in 105 between successive time steps), from spectral computations using a variety of resolutions. The plots are produced by projecting the spectral solutions onto 201 radial and 501 axial uniformly distributed physical locations (bothψandηare determined spectrally from u). A comparison of these contours shows very little difference, except for some oscillations in η, the azimuthal component of the vorticity, near the axis where η≈0. These oscillations are considerably reduced with an increase in the number of spectral modes used. Figure 4a is a detail of the time history of the azimuthal velocity at r= 1/2, z= 3/2, a point which is not particularly sensitive. It illustrates the convergence of the solutions as N and M are increased. It also demonstrates that the temporal characteristics of the flow transients are not sensitive to the level of spatial resolution. We have also computed cases with the same spatial resolution, but with two different temporal resolutions. Computations with δt= 0.04 and δt= 0.01 agree to four or five ←ψ ← ψ ψ 318 LOPEZ AND SHEN FIG. 4. (a) Detail of the time history ofv(r= 1/2, z=3/2)for Re= 2494,3= 2.5, from spectral computa- tions withε= 0.006, and N and M as indicated. (b) log(Ek ) versus k, where Ek is the energy contribution, from v, from different levels of modes (k= 0,..., M), corresponding to the solutions in (a). digits, which is of the same order as the time discretization error, and corresponding plots of the form shown in Fig. 4a are indistinguishable for these cases. In Fig. 4b, we show how the energy contribution Ek , from different levels of modes (k= 0,..., N) decreases ask increases. Ek is defined as the sum of the energy contribution from the modesvik for i= 0,..., M−N+ k andvk, j for j= 0,..., k (vij are the coefficients of the Legendre expansion ofv). The exponential decrease of Ek exhibited in Fig. 4b is a good indication that the solutions are well resolved. Note also that except for a few of the highest modes, the energy distributions of differently resolved solutions overlap each other, providing another indication of their convergence. From these convergence tests, we conclude that for N= 40, M= 56,δt= 0.04, we already have very good results for the primitive variables ( u,v,w ) but the approximation for the azimuthal vorticityηat this resolution is not acceptable. We recall thatηis computed by taking derivatives of u andw, so it is not unexpected that ηrequires more resolution than the velocity. At N= 56, M= 80,δt= 0.04, the ηcontours are very smooth and this solution can be taken as being independent of discretization. We use this solution to compare with the finite difference solutions. The finite difference code has been used with both uniform and stretched grids. Solutions on stretched grids with N= 60, M= 150,δt= 0.02 and N= 120, M= 300,δt= 0.005 are shown in Fig. 5. Comparing the two solutions visually, there are only very minor differences detected, and a visual comparison with the spectral solutions in Fig. 3 also shows very small differences. The overall structure of the solutions, the shape of the re- circulation zone, and the vorticity distributions all agree. The finite difference solutions, even on the coarser N= 60, M= 150 uniform grid (not shown), are all very smooth; however, a detailed comparison shows that the smoothness of a solution is not a suf- ficient indicator of convergence to a grid independent solution. In Fig. 6, we show the time histories of v(r= 1/2, z=3/2)of several computed solutions. We observe that the transients following the impulsive start from rest agree well at the beginning. The difference between solutions shows up at later times, as illustrated in Fig. 6b. As the ←← ψψ EFFICIENT SPECTRAL-PROJECTION METHOD 319 FIG. 5. Contours ofψ,η, and0 for Re= 2494 and3= 2.5a t t= 3000. Solutions are from finite difference computations withε= 0.006 on the stretched grid and N, M, andδt as indicated. spatial resolution of the finite difference solutions increases, they converge to the spectral solution. As a further illustration of the convergence of the solutions, we list in Tables 2 and 3 the values and locations (on a 201×501 uniform physical grid for the spectral solutions, and on their own grids for the finite difference solutions) of three local maxima and minima ofψandη. It can be concluded that the spectral-projection scheme with 57 ×81 modes provides significantly more accurate results than the (stretched) finite difference scheme with 121×301 grid points. We now turn to the unsteady case with Re= 2765. The structure and dynamics of this case have been discussed in detail in [8, 18]. Here, we compare the results of computations FIG. 6. Time histories ofv(r= 1/2, z= 3/2)for Re= 2494 from computations with (i) the spectral code using N= 56, M= 80, andδt= 0.04, and the finite difference code using the stretched grids with (ii)N= 120, M= 300,δt= 0.005, (iii) N= 60, M= 150,δt= 0.02, and (iv) using a uniform grid withN= 120, M= 300, δt= 0.01; all computations hadε= 0.006. (b) is a close-up view of (a). ← ←ψ ψ 320 LOPEZ AND SHEN TABLE 2 Local Maxima and Minima ofψand Their Locations for Re = 2494, Λ =2 .5, andε=0 .006 at t = 3000 N, M spectral ψ1 (r1, z1) ψ2 (r2, z2) ψ3 (r3, z3) 64, 96 7 .6604×10−5 −7.1496×10−3 1.8562×10−5 (0.180, 1.96) (0.760, 0.815) (0.115, 1.36) 56, 80 7 .6589×10−5 −7.1495×10−3 1.8578×10−5 (0.180, 1.96) (0.760, 0.815) (0.115, 1.36) 40, 64 7 .6585×10−5 −7.1497×10−3 1.8581×10−5 (0.180, 1.96) (0.760, 0.815) (0.115, 1.36) 40, 56 7 .6592×10−5 −7.1498×10−3 1.8582×10−5 (0.180, 1.96) (0.760, 0.815) (0.115, 1.36) N, M finite difference ψ1 (r1, z1) ψ2 (r2, z2) ψ3 (r3, z3) 120, 300 7 .5852×10−5 −7.1360×10−3 1.8145×10−5 Stretched (0.186, 1.96) (0.764, 0.791) (0.112, 1.36) 120, 300 7 .3988×10−5 −7.1075×10−3 1.7648×10−5 Uniform (0.183, 1.95) (0.758, 0.825) (0.117, 1.35) 60, 150 7 .4192×10−5 −7.1002×10−3 1.6948×10−5 Stretched (0.186, 1.95) (0.753, 0.853) (0.119, 1.33) 60, 150 7 .1706×10−5 −7.0783×10−3 1.6588×10−5 Uniform (0.183, 1.95) (0.767, 0.800) (0.117, 1.35) TABLE 3 Local Maxima and Minima ofηand Their Locations for Re = 2494, Λ =2 .5, andε=0 .006 at t = 3000 N, M spectral η1 (r1, z1) η2 (r2, z2) η3 (r3, z3) 64, 96 0.54488 −0.52342 −8.9785×10−3 (0.235, 2.04) (0.335, 2.28) (0.0500, 1.91) 56, 80 0.54488 −0.52343 −8.9797×10−3 (0.235, 2.04) (0.335, 2.28) (0.0500, 1.92) 40, 64 0.54494 −0.52341 −8.9683×10−3 (0.235, 2.04) (0.335, 2.28) (0.0500, 1.91) 40, 56 0.54502 −0.52341 −8.8570×10−3 (0.235, 2.04) (0.335, 2.28) (0.0500, 1.92) N, M finite difference η1 (r1, z1) η2 (r2, z2) η3 (r3, z3) 120, 300 0.54146 −0.52045 −8.4318×10−3 Stretched (0.236, 2.04) (0.329, 2.28) (0.0498, 1.92) 120, 300 0.53590 −0.51547 −7.7323×10−3 Uniform (0.233, 2.03) (0.333, 2.28) (0.0500, 1.91) 60, 150 0.53166 −0.51282 −7.2154×10−3 Stretched (0.225, 2.05) (0.341, 2.28) (0.0498, 1.90) 60, 150 0.52433 −0.50879 −6.5468×10−3 Uniform (0.233, 2.033) (0.333, 2.28) (0.0500, 1.90) ←← ψ (ψ EFFICIENT SPECTRAL-PROJECTION METHOD 321 FIG. 7. Time histories of v(r= 1/2, z= 3/2)for Re= 2765 from computations with the spectral code using N= 56, M= 80, andδt= 0.04 (solid line), and the finite difference code using the stretched grids with N= 120, M= 300,δt= 0.005 (broken line), Re= 2765. (b) and (c) are details of (a). using the spectral code withN= 56, M= 80,δt= 0.04 and the finite difference code with N= 120, M= 300,δt= 0.005. Figure 7 gives the time history ofv(r= 1/2, z= 3/2). Overall, the two codes agree to about the same extent as they did for the steady case. In particular, the early transients following the impulsive start from rest match very well, as shown in Fig. 7b. Figure 7c gives details of the oscillatory behavior once the limit cycle solution has been established. There is a slight phase shift between the two solutions, but their periods agree quite well. The nondimensional periods are approximately 36.2, and this value is well within the experimental error bounds measured by [35]. The difference in amplitudes of the limit cycles is also of the same order as the difference between the corresponding steady solutions at lower, Re, as noted above. Finally, a comparison of efficiency is in order. It can be shown and is confirmed by our computations that for a fixed Re the fully discrete semi-implicit second-order projection scheme is unconditionally stable forδt sufficiently small, while the explicit finite difference scheme is only conditionally stable with a stability condition δt<∼min (h 2 min Re , hmin ) , ← ψ ψ 322 LOPEZ AND SHEN TABLE 4 CPU Seconds Used for 100 Time Steps CPU seconds for N, M,δt Code 100 time steps 64, 96, 0.04 Spectral 20.2 56, 80, 0.04 Spectral 13.6 40, 64, 0.04 Spectral 7.1 40, 56, 0.04 Spectral 6.0 60, 150, 0.05 Finite diff. 12.6 120, 300, 0.025 Finite diff. 58.6 where hmin is the minimum distance between two adjacent grid points. For large Reynolds numbers, as are considered here, the allowable time step for the finite difference code scales like h min. Note that the finite difference codes take the same amount of CPU time per time step for the same (N, M), regardless of the amount of coordinate stretching. The restriction on the time step is more stringent, for the same ( N, M), as the coordinate stretching is increased. The time steps used in the computations are all close to the critical time steps. For a fixed mesh size (N, M), at each time step, the spectral-projection scheme requires the solution of four elliptic equations, whereas the finite difference code only requires two elliptic equations to be solved. We list in Table 4 the CPU seconds used, on one processor of an SGI Power-Challenge R8000, in computing 100 time steps of the two codes at different resolutions. We observe that the CPU time for the spectral-projection code with 57 ×81 modes is less than one quarter of that used by the finite difference code with 121×301 grid points, while the allowable time step is eight times larger. Thus, for this specific problem, the spectral-projection scheme with 57×81 modes produces a more accurate result at about 3% of the cost of the (stretched) finite difference scheme with 121×301 grid points. 5. CONCLUDING REMARKS We have presented an efficient, accurate, and stable numerical scheme for the axisym- metric Navier–Stokes equations in primitive variables in a cylinder. The scheme is based on a new spectral-Galerkin approximation [30] for the space variables and a second-order pro- jection scheme for the time variable. In addition to its accuracy and efficiency, the spectral- projection scheme can be readily extended to nonaxisymmetric three-dimensional cases. We have implemented the scheme to simulate the unsteady incompressible axisymmetric flow driven by a rotating bottom with constant angular speed. We have developed a new procedure which produces mesh independent approximations to the singular boundary condition to within any prescribed accuracy. In problems where physical singularities play an important dynamic role (as a source or sink of vorticity), such as in the present problem and the driven cavity in two-dimensional flows, their treatment is important and the mesh- independent parameterεmay be thought of as a further dynamic parameter describing the flow. To evaluate the relative merit of the spectral-projection scheme, we have made a sensible comparison with a standard second-order (in time and space) finite difference scheme based on a stream function-vorticity formulation. The two schemes, although totally different in ← ← ψ ψ( EFFICIENT SPECTRAL-PROJECTION METHOD 323 every aspect, produced very reliable results. Despite the singular boundary condition which is unfavorable to spectral approximations, the spectral-projection scheme is still more ac- curate (Tables 2 and 3) and more efficient (Table 4) than the finite difference scheme. APPENDIX A: A STANDARD FINITE DIFFERENCE SCHEME IN STREAM FUNCTION-VORTICITY FORMULATION The finite difference scheme with which we compare the spectral-projection scheme has been used extensively with success in solving our problem (e.g., [2, 16, 18]) and related problems (e.g., [17, 19]). It solves the governing equations in the ψ,η,0formulation, thereby guaranteeing divergence-free flow. The main disadvantage of this formulation is that it does not generalize easily to three dimensions. We now give a brief outline of this scheme. A Stokes stream functionψis introduced, along with the angular momentum0, so that the velocity and vorticity vectors are now u= ( −1 rψz, 1 r0, 1 rψr ) and ω= ( −1 r0z,−1 r∇2 ∗ψ,1 r0r ) , where ∇2 ∗= ∂2 r −1 r∂r+∂2 z. In terms ofψ,η, and0, the axisymmetric Navier–Stokes equations (1.1)–(1.3) become D0= 1 Re∇2 ∗0, (A.1) D(η/r)= 1 Re [ ∇2(η/r)+ 2 r(η/r)r ] +(02/ r4)z, (A.2) −∇2 ∗ψ= rη, (A.3) where D= ∂t−1 rψz∂r+ 1 rψr∂z. The boundary and axis conditions are thatψ= 0 on all walls and the axis, and the normal and tangential derivatives ofψon all walls are zero;0= 0 on all stationary walls and the axis,0= r2 on the rotating endwall; andη= 0 on the axis. The main difficulty associated with the stream function-vorticity formulation is the lack of the vorticity boundary condition, as opposed to the lack of pressure boundary condition for the primitive variable formulation. However, this difficulty can be overcome by using an explicit time discretization for (A.1)–(A.2) described below. ← ← ψ ( 324 LOPEZ AND SHEN We first discretize Eqs. (A.1)–(A.3) in space by using second-order centered differences at grid points (ri, z j ) for i= 1,..., N−1 and j= 1,..., M−1( i= 0o r N or j= 0o r M represent the points on the boundary), resulting in a system ∂t0ij = G1(0ij,ηij,ψij) (A.4) and ∂tηij = G2(0ij,ηij,ψij), (A.5) −∇2 ∗ψij = riηij, (A.6) where G1 and G2 represent the finite difference approximations for all the terms except the one with time derivative in (A.4) and (A.5), respectively. For the problem we are considering, the dynamics are dominated by the structure of the boundary layers, and an efficient resolution of these using finite differences requires a nonuniform grid stretched near the boundary. In the comparison with the spectral scheme, we consider both uniform and stretched grids, where the radial stretching function is given by r= x−a sin(2πx), and the axial stretching function is given by z= 3(y−b sin(2πy)), where x, y∈[0, 1] and a and b are constants, taken here to be 0.1. We now use a second-order predictor–corrector scheme to discretize in time so that the boundary condition for ψon the walls gives that η= (1/ r)ψ nn on all walls (here the subscript n denotes differentiation normal to the wall). More precisely, the scheme is implemented in the following fashion: 1. Evaluate 0∗ ij = 0k ij + 0.5δtG 1 ( 0k ij,ηk ij,ψk ij ) , and η∗ ij = ηk ij + 0.5δtG 2 ( 0k ij,ηk ij,ψk ij ) , for i= 1,..., N−1 and j= 1,..., M−1. 2. Solve∇2 ∗ψ∗ ij =−rη∗ ij . 3. Implement boundary conditions on 0∗andη∗. 4. Evaluate 0k+1 ij = 0k ij +δtG 1 ( 0∗ ij,η∗ ij,ψ∗ ij ) , and ηk+1 ij = ηk ij +δtG 2 ( 0∗ ij,η∗ ij,ψ∗ ij ) , for i= 1,..., N−1 and j= 1,..., M−1. ← ← ψ EFFICIENT SPECTRAL-PROJECTION METHOD 325 5. Solve∇2 ∗ψk+1 ij =−rηk+1 ij . 6. Implement boundary conditions on 0k+1 andηk+1. 7. Goto the next time step. To solve the Poisson equations in steps (2) and (5) we only require knowledge ofηon the interior grid points, i.e.i= 1,..., N−1 and j= 1,..., M−1. The Poisson equations can be efficiently solved by the generalized cyclic reduction routineBLKTRI from the FISHPACK package [36], whose computational complexity is of orderNM log2 N or by using the matrix diagonalization method [22] whose computational complexity is of orderNM min(N, M). However, the relative performance of the two approaches will depend on the grid size, the machine architecture, and the availability of machine coded BLAS (basic linear algebra subroutines). ACKNOWLEDGMENTS This work was supported in part by NSF Grants DMS-9205300 and DMS-9512483. REFERENCES 1. J. Bell, P. Colella, and H. Glaz, A second-order projection method for the incompressible Navier–Stokes equations, J. Comput. Phys. 85, 257 (1989). 2. G. L. Brown and J. M. Lopez, Axisymmetric vortex breakdown, Part 2. Physical mechanisms,J. Fluid Mech. 221, 553 (1990). 3. C. Canuto, M. Y . Hussaini, A. Quarteroni, and T. A. Zang, Spectral Methods in Fluid Dynamics (Springer- Verlag, New York/Berlin, 1987). 4. A. J. Chorin, Numerical solution of the Navier–Stokes equations, Math. Comput. 22, 745 (1968). 5. O. Daube and J. N. Sørensen, Simulation num´ erique de l’´ecoulement p´eriodique axisym´etrique dans une cavit´e cylindrique, C.R. Acad. Sci. Paris 308, 463 (1989). 6. P. Demaret and M. O. Deville, Chebyshev collocation solution of the Navier–Stokes equations using multi- domain decomposition and finite element preconditioning, J. Comput. Phys. 95, 359 (1991). 7. H. Eisen, W. Heinrichs, and K. Witsch, Spectral collocation methods and polar coordinate singularities, J. Comput. Phys. 96, 241 (1991). 8. M. P. Escudier, Observations of the flow produced in a cylindrical container by a rotating endwall, Expts. Fluids 2, 189 (1984). 9. G. Georgiou, L. G. Olson, W. W. Schultz, and S. Sagan, A singular finite element for Stokes flow: The stick-slip problem, Int. J. Numer. Methods Fluids9, 1353 (1989). 10. D. Gottlieb and S. A. Orszag, Numerical Analysis of Spectral Methods: Theory and Applications (SIAM- CBMS, Philadelphia, 1977). 11. J. E. Hart and S. Kittelman, Instabilities of the sidewall boundary layer in a differentially driven rotating cylinder, Phys. Fluids 8, 692 (1996). 12. J. E. Hart and M. D. Mundt, Instability of oscillatory Stokes-Stewartson layers in a rotating fluid, J. Fluid Mech. 311, 119 (1996). 13. J. G. Heywood and R. Rannacher, Finite element approximation of the nonstationary Navier–Stokes problem, III. Smoothing property and higher order estimates for spatial discretization, SIAM J. Numer. Anal. 25, 489 (1988). 14. C. C. Jahnke and D. T. Valentine, Boundary layer separation in a rotating container, Phys. Fluids 8, 1408 (1996). 15. H. C. Ku, R. S. Hirsh, and T. D. Taylor, A pseudospectral method for solution of the three-dimensional incompressible Navier–Stokes equations, J. Comput. Phys. 70, 439 (1987). 326 LOPEZ AND SHEN 16. J. M. Lopez, Axisymmetric vortex breakdown, Part 1. Confined swirling flow,J. Fluid Mech.221, 533 (1990). 17. J. M. Lopez, Flow between a stationary and a rotating disk shrouded by a co-rotating cylinder, Phys. Fluids 8, 2605 (1996). 18. J. M. Lopez and A. D. Perry, Axisymmetric vortex breakdown, Part 3. Onset of periodic flow and chaotic advection, J. Fluid Mech. 234, 449 (1992). 19. J. M. Lopez and P. D. Weidman, Stability of stationary endwall boundary layers during spin-down, J. Fluid Mech. 326, 373 (1996). 20. H. J. Lugt and M. Abboud, Axisymmetric vortex breakdown with and without temperature effects in a container with a rotating lid, J. Fluid Mech. 179, 179 (1987). 21. H. J. Lugt and H. J. Haussling, Development of flow circulation in a rotating tank,Acta Mech. 18, 255 (1973). 22. R. E. Lynch, J. R. Rice, and D. H. Thomas, Direct solution of partial differential equations by tensor product methods, Numer. Math. 6, 185 (1964). 23. T. Matsushima and P. S. Marcus, A spectral method for polar coordinates, J. Comput. Phys. 120, 365 (1995). 24. G. P. Neitzel, Streak-line motion during steady and unsteady axisymmetric vortex breakdown, Phys. Fluids 31, 958 (1988). 25. S. A. Orszag, Fourier series on spheres, Monthly Weather Rev.102, 56 (1974). 26. H. P. Pao, Numerical solution of the Navier–Stokes equations for flows in the disk-cylinder system, Phys. Fluids 15, 4 (1972). 27. B. Ronnenberg, Ein selbstjustierendes 3-komponenten-LDA nach dem vergleichstrahlverfahren, angewendt f¨ur untersuchungen in einer stationaren zylindersymmetrischen drehstr ¨ohmung mit einen r ¨uckstr¨omgebiet, Technical Report Bericht 20, Max-Planck-Institut f¨ur Str´omungsforschung, Gottingen, 1977. 28. W. W. Schultz and C. Gervasio, A study of the singularity in the die swell problem, Q.J. Mech. Appl. Math. 43, 407 (1990). 29. W. W. Schultz, Lee, and J. P. Boyd, Chebyshev pseudospectral method of viscous flows with corner singular- ities, J. Sci. Comput. 4, 1 (1989). 30. J. Shen, Efficient spectral-Galerkin methods III, Polar and cylindrical geometries, SIAM J. Sci. Comput. 18,1583 (1997). 31. J. Shen, Hopf bifurcation of the unsteady regularized-driven cavity flows, J. Comput. Phys. 95, 228 (1991). 32. J. Shen, Efficient Chebyshev-Legendre Galerkin methods for elliptic problems, in Proceedings of ICOSA- HOM’95, edited by A. V . Ilin and R. Scott, pp. 233–240. [Houston J. Math. (1996)] 33. J. Shen, On error estimates of projection methods for the Navier–Stokes equations: Second-order schemes, Math. Comput. 65, 1039 (1996). 34. J. N. Sørensen and E. A. Christensen, Direct numerical simulation of rotating fluid flow in a closed cylinder, Phys. Fluids 7, 764 (1995). 35. J. L. Stevens, J. M. Lopez, and B. J. Cantwell, Oscillatory flow states in an enclosed cylinder with a rotating endwall, J. Fluid Mech. (1997), submitted. 36. P. N. Swarztrauber and R. A. Sweet, Efficient FORTRAN subprograms for the solution of elliptic partial differential equations, ACM Trans. Math. Soft. 5, 352 (1979). 37. R. Temam, Sur l’approximation de la solution des ´equations de Navier–Stokes par la m´ethode des pas frac- tionnaires ii, Arch. Rat. Mech. Anal. 33, 377 (1969). 38. N. Tsitverblit, V ortex breakdown in a cylindrical container in the light of continuation of a steady solution, Fluid Dyn. Res. 11, 19 (1993). 39. L. S. Tuckerman, Divergence-free velocity fields in nonperiodic geometries,J. Comput. Phys.80, 403 (1989). 40. J. van Kan, A second-order accurate pressure-correction scheme for viscous incompressible flow, SIAM J. Sci. Stat. Comput. 7, 870 (1986). 41. H. U. V ogel,Experimentelle ergebnisse ´uber die laminare str¨omung in einem zylindrischen geha¨use mit darin rotierender scheibe, Technical Report Bericht 6, Max-Planck-Institut f¨ ur Str´omungsforschung, Gottingen, 1968.

采集于

查看校方原文 ↗