Sie sind auf Seite 1von 16

Computers & Fluids 84 (2013) 231246

Contents lists available at SciVerse ScienceDirect

Computers & Fluids


j o u r n a l h o m e p a g e : w w w . e l s e v i e r . c o m / l o c a t e / c o m p fl u i d

An octree-based solver for the incompressible NavierStokes equations


with enhanced stability and low dissipation q
Maxim A. Olshanskii a,b,, Kirill M. Terekhov c, Yuri V. Vassilevski c,d
a
Department of Mathematics, University of Houston, Houston, TX 77204, United States
b
Department of Mechanics and Mathematics, Moscow State University, Moscow 119899, Russian Federation
c
Institute of Numerical Mathematics, Russian Academy of Sciences, Moscow 119333, Russian Federation
d
Moscow Institute of Physics and Technology, Moscow Region, Dolgoprudny 141700, Russian Federation

a r t i c l e i n f o a b s t r a c t

Article history: The paper introduces a nite difference solver for the unsteady incompressible NavierStokes equations
Received 11 August 2012 based on adaptive cartesian octree grids. The method extends a stable staggered grid nite difference
Received in revised form 15 April 2013 scheme to the graded octree meshes. It is found that a straightforward extension is prone to produce spu-
Accepted 29 April 2013
rious oscillatory velocity modes on the ne-to-coarse grids interfaces. A local linear low-pass lter is
Available online 16 May 2013
shown to reduce much of the bad inuence of the interface modes on the accuracy of numerical solution.
We introduce an implicit upwind nite difference approximation of advective terms as a low dissipative
Keywords:
and stable alternative to semi-Lagrangian methods to treat the transport part of the equations. The per-
Octree grid
Staggered grid
formance of method is veried for a set of benchmark tests: a Beltrami type ow, the 3D lid-driven cavity
MAC scheme and channel ows over a 3D square cylinder.
Incompressible viscous uid 2013 Elsevier Ltd. All rights reserved.
Benchmarking

1. Introduction @u
u  ru  mDu rp 0 in X  0; T;
@t
Octree grids are gaining popularity in computational mechanics div u 0 in X  0; T;
and physics due to the their simple cartesian structure and embed- 1
ujt0 u0 in X;
ded hierarchy, which makes mesh adaptation, reconstruction and  
@u 
data access fast and easy. As an example, such grids were used ujC1 g; m  pn  0;
@n C2
for adaptive discontinuous Galerkin and nite volume methods
with application to hyperbolic conservation laws, see, e.g., [14].
Fast dynamic remeshing with octree grids makes them a natural where u, p are unknown uid velocity and kinematic pressure, m is
choice for the simulation of moving interfaces and free surface the viscosity parameter, C2 is the outow part of the boundary, n is
ows, see, e.g., [511], octree grids became a standard tool in im- the normal vector to C2, and C1 is the rest of @ X. Discretizations on
age processing [12]. octree (quadtree) cartesian grids already enjoyed an employment in
In this paper, we study the application of octree grids to numer- incompressible viscous and inviscid uid ow computations. Thus,
ical solution of the incompressible NavierStokes equations, which Popinet in [13] developed a nite volume Godunov type scheme,
in non-dimension form read which uses a collocated arrangement of velocity unknowns in cells
vertices. Min and Gibou [14,15] introduced a nite difference meth-
od on non-graded octree grids, where all unknowns were collocated
to cell vertices and semi-Lagrangian techniques were applied to
treat advection. A special stabilization was applied in those papers
to avoid spurious pressure modes typical for the collocated arrange-
q
This work has been supported in part by Russian Foundation for Basic Research ment of unknowns. In [6,7,11] the nite difference MAC scheme
through grants 12-01-00283, 11-01-00971, 11-01-00767 and Federal contracts [1618], with staggered location of unknowns, was extended to oc-
14.740.11.1389 and 14.514.11.4057.
Corresponding author at: Department of Mathematics, University of Houston, tree meshes.
Houston, TX 77204, United States. Tel.: +1 713 743 3470. The advantages of using staggered location of unknowns are the
E-mail addresses: molshan@math.uh.edu (M.A. Olshanskii), kirill.terehov@gmail. cell-wise enforcement of the incompressibility condition and
com (K.M. Terekhov), yuri.vassilevski@gmail.com (Y.V. Vassilevski). the well-known pressure stability of such schemes: oddeven

0045-7930/$ - see front matter 2013 Elsevier Ltd. All rights reserved.
http://dx.doi.org/10.1016/j.compuid.2013.04.027
232 M.A. Olshanskii et al. / Computers & Fluids 84 (2013) 231246

oscillatory pressure modes do not emerge. However, such arrange- are assigned to the faces centers of ne grid cells (in the case of
ment of unknowns makes building higher order accurate methods graded octree mesh, the corresponding face of the coarse grid cell
on octree grids technically more difcult or computationally holds 4 velocity unknowns), cf. Fig. 1 (left). The staggered FD dis-
expensive. In particular, in papers [6,7,11] a rst order semi- cretization is well-known, cf. [19], to be stable on a uniform mesh.
Lagrangian method was applied to treat advection terms. In this Although we do not have a rigorous proof, which is a non-trivial
paper, we develop a second order accurate nite difference scheme exercise even for the uniform grid, results of numerical experi-
with the staggered location of unknowns on graded octree carte- ments strongly suggest that the scheme remains pressure-stable
sian meshes. To reduce numerical dissipation, we build higher or- for octree meshes as well.
der upwind nite difference approximations of advective terms. The approximation of div u in the center xV of a grid cell V
The discretization invokes simple linear interpolation or quadratic makes use of the Gauss formula
interpolation built upon second degree polynomials of only two Z Z
variables. This leads to compact nodal stencils and makes implicit div u dx u  n ds; 2
V @V
treatment of diffusion and advection terms feasible by solving
algebraic systems of equations, with sparse matrices, by precondi- where n is the outward unit normal to the cells boundary. Let F V
tioned Krylov subspace iterative methods. The implicit advection be the set of all faces F of V, i.e. @V [F2F V F, and xF denotes the
step removes the Courant stability condition for the time step, center of F 2 F V. We dene the grid divergence operator by
which can be otherwise rather restrictive for locally rened X
meshes. Applying low dissipative approximations reveals, how- divh uh xV jVj1 jFjuh  nxF : 3
ever, a (seemingly) previously unknown issue: For octree staggered F2F V

grids, the discrete Helmholtz decomposition is unstable due to


Thanks to the staggered location of velocity nodes, the uxes
oscillatory spurious velocity modes tailored to course-to-ne grid
(uh  n)(xF) are well-dened.
interfaces. If a uid viscosity or numerical diffusion is sufciently
One way to introduce the discrete gradient is to dene it as the
large, then such modes are suppressed, otherwise they propagate
adjoint of the discrete divergence. We dene rh differently based
and destroy the accuracy of numerical solution. In the paper, we
on the formal Taylor expansions. For every internal face we assign
introduce a linear low-pass lter which eliminates the spurious
the corresponding component of rhp as follows. Since the octree
modes and improves the accuracy of numerical solution signicantly.
mesh is graded, there can be only two geometric cases. If a face
The remainder of the paper is organized as follows. In Sec-
is shared by two equal-size cells, then the central difference
tion 2, we consider the discrete Helmholtz decomposition on oc-
approximation is used. Otherwise, the approximation of px at the
tree meshes with the staggered location of unknowns. It turns out
face center node y is illustrated in Fig. 1 (right): Consider the cen-
that the decomposition is specically unstable. However, it can be
ters of ve surrounding cells x1, . . . , x5 and expand the pressure va-
stabilized by a local enrichment of discrete pressure space or by
lue p(xi) with respect to p(y):
introducing a local low-pass lter. The discretizations of advective
and diffusion operators are described in Section 3. We note right
pxi py rpy  xi  y Ojxi  yj2 :
away that only the case of cubic cells is treated in the paper. For
curvilinear boundaries, this means a rst order staircase approx- Neglecting the second-order terms, we obtain the following over-
imation. An extension of the discretization for cut cells will be re- determined system:
ported elsewhere. Further, in Section 4 we collect a few 0 1 0 1
competing time-stepping splitting schemes that are used further 1 D=2 D=4 D=4 0 1 px1
in numerical experiments. Finally, in Section 5 we present the re- B C py B C
B 1 D=4 0 0 CB B px2 C
sults of numerical experiments for several benchmark problems:
B CB px y C
C B B C
B 1 D=4 D=2 0 C C B px3 C 4
B CB
@ p y A C;
a 3D Beltrami type ow, the 3D lid-driven cavity problem and B C y B C
@ 1 D=4 0 D=2 A @ px4 A
channel ows around a 3D square cylinder. Conclusions are given pz y
in Section 6. 1 D=4 D=2 D=2 px5

where D  Dx. The least squares solution of (4) gives the stencil for
2. Staggered grid discretization and the Helmholtz the x-component of the gradient [11]:
decomposition
1
px y  p p3 p4 p5  4p1 : 5
For the staggered location of velocity and pressure unknowns
3D 2
on cubic meshes, the pressure degrees of freedom are assigned to The nite difference gradient and divergence dened above are sim-
cells centers and velocity variables are located at cells faces in such ilar to what can be found in [7]. Yet the gradient stencil is slightly
a way that every face stores normal velocity ux. If a face is shared different: For the cells arrangement given in Fig. 1 (right) the refer-
by cells from different grid levels, then velocity degrees of freedom ence [7] uses

Fig. 1. Left: Each shared face holds a node for velocity x-component. The nodes are located at faces barycenters. Right: Discretization stencil for @p/@x.
M.A. Olshanskii et al. / Computers & Fluids 84 (2013) 231246 233

1 ment step for cells in the right half of the square, x > 12 (Fig. 2,
px y  p p3 p4 p5  4p1 : 6
2D 2 bottom). The function f is such that the exact solution to (7) reads

We found that using (5) shows slightly better results for smooth    
2pex  1 2peay  1 1 ex
solutions compared to (6), although the convergence order and u sin 1  cos ;
e1 ea  1 2p e  1
the accuracy were comparable. The super-position of the discrete     
2pe  1
x
2pe  1 a
ay
eay
gradient and divergence operators generally leads to the non-sym- v 1  cos sin ;
metric matrix for the pressure problem. However, the correspond- e1 ea  1 2p ea  1
   
ing linear algebraic systems are solved efciently by a Krylov 2pe  1
x
2pe  1
ay
ea1
p a cos cos ;
subspace method with a multigrid preconditioner, see details in e1 ea  1 e  1ea  1
Section 5.
The key ingredient of many splitting algorithms for the time- with a = 0.1, u = (u, v)T. The discrete decomposition (7) on two grids
integration of the incompressible NavierStokes equations is the was computed and the L1-norm and the (discrete) L2-norm of the
(discrete) Helmholtz decomposition of a given (grid) vector func- errors for u and p are shown in Table 1 (for the locally rened grid,
R
tion f such that @ X f  n 0: h denotes the size of the coarse grid cells). The results in Table 1
8 8 show that introducing more degrees of freedom in a local way
< f u rp;
> < div
>

rp div f; may lead to the signicant loss of accuracy in velocity. The rst
@p 
div u 0; () @n 0; 7 explanation of this error growth could be the formal decrease of
>
: >
:
@X
u  nj@X f  nj@X : u f  rp: the discretization consistency order from the second to the rst
one at the nodes on the interface between the coarse and ne grids.
It occurs that for the nite difference discretization as described However, a closer look at the velocity error reveals the appearance
above, the decomposition is not stable in the following sense. For of specic interface modes, which dominate the entire error func-
a given smooth function f, the error for u in the discrete decompo- tion, see Fig. 2 (left). These are local discretely div-free modes,
sition may signicantly increase with every level of local rene- which occur on the coarse-to-ne grids interface and are subgrid
ment. This is illustrated below by a simple 2D example and one modes for the coarse grid, see Fig. 3 (left).
renement level (another example of a 3D problem and more levels A straightforward way to lter out the specic modes is to en-
of renement can be found in the next section). We consider two force a stronger divergence free condition such that these modes
meshes in X = (0, 1)2: The rst is uniform with the mesh size h, are no longer discretely divergence free. To demonstrate this, we
the second mesh results from the rst one by applying one rene- introduce extra pressure degrees of freedom in the coarse grid cell

0.4
0.4

0.3 0.3

0.2 0.2

0.1 0.1
uuh

vvh

0 0

0.1 0.1

0.2 0.2

0.3 0.3
0.4
0 0 0.4
0.5 0.5 0 0
1 1 y 0.5 0.5
x 1
x y

Fig. 2. The velocity error is dominated by the div-free modes occurring on the coarse-to-ne grids interface. The left gure shows the u-component of the error, the right
gure shows the v-component, and the bottom gure shows the grid for h = 1/8.
234 M.A. Olshanskii et al. / Computers & Fluids 84 (2013) 231246

Table 1
Errors for the discrete Helmholtz decomposition on uniform and one-level rened grids.

Quantity Mesh size h


1/8 1/16 1/32 1/64 1/8 1/16 1/32 1/64
Uniform mesh Locally rened mesh
ku  uh kL1 1.1e1 2.9e2 1.1e2 3.8e3 1.4e1 7.0e1 3.5e1 1.8e1
ku  uh kL2 6.7e2 1.7e2 4.2e3 1.1e3 3.5e1 1.2e1 4.2e2 1.5e2
kp  ph kL2 2.52 6.4e3 1.6e3 4.0e4 1.4e2 3.3e3 8.1e4 2.0e4

Fig. 3. Left: A single local div-free mode, which is subgrid for the coarse grid cell. Right: Introducing additional pressure d.o.f. for the coarse cell next to ne cells. This yields a
stronger discrete div-free condition and precludes the occurrence of subgrid div-free modes such as shown in the left gure.

near the coarse-to-ne grid interface, see Fig. 3 (right). For this right part of Table 2. The error in velocity is reduced versus the
coarse cell, the div-free condition is now enforced separately for non-stabilized case and the accuracy is comparable to the pressure
two sub-cells, by interpolating the v-component into the center enrichment stabilization (as usual for stabilized method, the param-
point xc. The discrete gradient operator is altered in the obvious eter a has to be tuned). Note that introducing interface diffusion in (8)
way. We call this method the pressure enrichment and show re- makes the corresponding pressure operator, div (I  ah2DC)1r,
sults for the discrete Helmholtz decomposition (7) in the left part non-local and the corresponding matrix is not sparse. Hence, the
of Table 2: The error in velocity is substantially reduced. However, repeated solution of the pressure problem becomes expensive.
for general 3D octree meshes the pressure enrichment may not be To avoid this, in the splitting scheme for the NavierStokes equations
the best method for ltering the subgrid modes for the following we shall introduce explicit lter, rather than implicit as in (8).
reasons: When a coarse-grid cell is neighboring ne-grid cells from We conclude that the error of the discrete Helmholtz decompo-
different sides, introducing up to 7 extra pressure d.o.f. may be re- sition on octree-rened meshes may be dominated by specic
quired. This complicates the scheme and can lead to the pressure divergence-free coarse-to-ne grid interface velocity modes. How-
instability. ever, using simple low-pass local lters may reduce the error sig-
The oscillatory behavior of the interface velocity error also nicantly. In the next section, we dene the remaining discrete
suggests the application of a low-pass lter as an alternative operators and introduce a low-pass lter for unsteady ow
way to enhance the stability of the discrete Helmholtz computations.
decomposition. To test the idea, we introduce the interface
diffusion in (7) as
3. Advection, diffusion and ltering
8 2
< f I  ah DC u rp;
>
First, we describe how the advection terms are treated. Consider
div u 0; 8 the advection term for the velocity x-component: a  ru. We
>
:
u  nj@ X f  nj@X : distinct between derivatives in the normal and the tangential direc-
tions to a face, where the velocity degree of freedom is located. Con-
Here DC is the vector LaplaceBeltrami operator for the coarse-to- @u
sider the discretization of the tangential derivative, ay , in the face
ne grids interface Ccf (DC v : v yy jCcf for our test example), h is the @y
size of coarse cells and a P 0 is a parameter. Thus, (8) is closely re- center x. Depending on the sign of ay(x), (ay is computed in x with
lated to the idea of low-pass differential lters, see, e.g., [20]. The re- the help of an interpolation procedure described in Remark 3.2),
sults for the discrete decomposition (8) with a = 4 are shown in the four reference points (x1,x1, x2, x0 : x) are taken as shown in

Table 2
Errors for the discrete Helmholtz decomposition, with one-level rened grids, using pressure enrichment and differential lter stabilizations.

Quantity Mesh size h


1/8 1/16 1/32 1/64 1/8 1/16 1/32 1/64
Pressure enrichment Differential lter
ku  uh kL1 1.4e1 8.1e2 4.3e2 2.2e2 1.2e1 4.9e1 2.2e2 1.0e2
ku  uh kL2 5.1e2 1.5e2 4.5e3 1.5e3 3.8e2 1.0e2 3.1e3 1.0e3
kp  ph kL2 1.1e2 2.8e3 6.9e4 1.7e4 1.1e2 2.6e3 6.3e4 1.6e4
M.A. Olshanskii et al. / Computers & Fluids 84 (2013) 231246 235

Fig. 4. Left: Reference points for the third-order upwind approximation of advection. This illustration is for the derivative tangential to a face, where velocity degree of
freedom is located. Right: An example of the set P, if the velocity value (u1) is sought in the reference point x1. All points p0, pi, i P 2, appear to be velocity nodes in this
example. To assign a velocity value to p1, one uses the linear interpolation.

Fig. 4 (left). Note that x1, x1, and x2 are not necessarily grid nodes. inverted to nd the interpolation polynomials for a given grid. It
Values u1, u1, and u2 in these nodes are then dened based on the may look inconsistent that some reference nodes from {x1, x1, x2}
following interpolation procedure. If the reference point belongs to receive velocity values by the simplest linear interpolation, while
a cell smaller than the cell of x0 (points x1 and x2 in the gure), then others by more elaborated interpolation procedure. From numer-
the linear interpolation between the two nodes of adjunct faces is ical experiments we observed that using simple linear interpola-
used. If the node belongs to a cell larger than the cell of x0 (point tion for ctitious nodes located in cells larger than the current cell,
x1 in the gure), then one considers a plane P such that x1 2 P where x0 is located, leads to perceptibly less accurate results,
and P\Oy. Further, consider the cross sections of P with the cell pos- especially if a larger cell lies from the upwind side of the current
sessing x1 (denote this cell by V) and all cells sharing a face or an cell. Applying the quadratic interpolation for larger cells, as
edge with V. Any such cross-section can be either a square or the described above, was found to produce stable and accurate
empty set. All center points of square cross-sections form the set disretization.
P, cf. Fig. 4 (right). Now we assign u-values to all points from P. Now we explain how the nite difference approximation of vis-
Due to the octree mesh structure, any p 2 P can be either a u-node cous terms is computed. Consider a velocity u-component node x
(thus the value is assigned trivially) or it lies on the x-midline of a lying on a face F and dene a cubic control volume V0 , such that
cell (denote this cell by V0 ). In the latter case, we rst assign u-values x is the center of V0 and F is a middle cross section of V0 . We set
to the centers of two x-faces of V0 : if the center is not a u-node, we X
take the average of velocity values from four u-nodes on this face. Dh ux jV 0 j1 jF 0 jrh u  nyF 0 : 9
F 2F V 0
0
Further, we take the linear interpolation of these values from the
face centers and assign a u-value to p. When all p 2 P receive their In order to approximate the diffusion ux in the center yF 0 of
u-values, the least-square second order interpolant Q2 is computed F 0 2 F V 0 , we take four reference points (x1, x0, x1, x2) as shown
for the set of p 2 P (Q2 is the second order polynomial of y and z in Fig. 5 (left). Velocity values u1, u0, u1, and u2 are assigned to ref-
variables) and u1 : Q2(x1). Once the values {ui},i = 1, . . . , 2, erence points in the same way as for the advective terms described
@u above. Using the notation from Fig. 5, the formal third order approx-
are dened, we compute ay at x using the third order upwind dis-
@y imation of the diffusion ux (ru  n) can be written out as
cretization stencil: 2 3 2 3
ru  n  D1 h H3 h R2  H3 R2 h R3  H2 R3  h H2 u0
hH rh
c1  ; c3 ; H3 R2 r 3 R2 H2 R3  r2 R3  H3 r 2  H2 r 3 u1 h r 2
3
rh rr H Hr HH  h
2 3 2 3 2
r 1 h h r3  h R2  r 3 R2  h R3 r 2 R3 u1 h H2  h H3
c2  
hr h H r hr H 3 2
 h r2 H3 r 2  h r 3 H2 r 3 u2 ;
uL : c1 u1 c2 u0 c3 u1 ; uR : c1 u2 c2 u1 c3 u0 ;
@u with D = (H  h)(h + r)(H + r)(h + R)(H + R)(R  r). If the reference
ay x  ay xuR  uL ;
@y point x2 is not available, we use the point x2.
Finally, following the discussion of the previous section, we de-
where notations r, h, H are illustrated in Fig. 4 (left). A special care is
ne the low-pass lter G acting on the coarse-to-ne grid interface
taken near boundaries, since the reference point x2 may be not
Ccf:
available. In this case, we use the second order difference: 8 4
! > X
@u r r h 2 2
h <1 uxi if x 2 Ccf ;
ay x  ay x u1  u0  u1 : G  ux 4 i1
@y hr h hrh r rh r >
:
ux otherwise;
The nite difference approximation of the derivative in the normal for every internal velocity component node x:
@u
direction, ax , is constructed in the similar manner. The altera- Here Ccf denotes the union of all octree cells faces, which are shared
@x
tions to the algorithm described above are the following: ax is de- by cells of different sizes; xi are four velocity nodes lying on the
ned in x (no interpolation required), and the reference points same large cells face as x (obviously x 2 {x1, x2, x3, x4}).
x1, x1, x2 are always lying on cells x-faces (although not necessarily
in the centers and the interpolation is done as above). Remark 3.2. We recall that for computing nite difference advec-
tion derivative a  ru, we need the approximation of every
Remark 3.1. Note that the interpolation procedure invokes com- component of the grid vector function a in all velocity nodes. For
puting the second order polynomial of only 2 variables. Moreover, a given point y in computational domain, we evaluate a(y) as
only a limited number of different auxiliary matrices should be follows. Assume y belongs to a cell V and we are interested in
236 M.A. Olshanskii et al. / Computers & Fluids 84 (2013) 231246

Fig. 5. Left: Reference points for the diffusion ux approximation; Right: uh(y) is dened by a linear interpolation based on the fan triangulation with the center in xV, i.e.
interpolation of uh(xV), uh(x1), uh(x10) in this example.

interpolating the x-component of velocity to y, i.e. ax(y). Consider a Further, we refer to the scheme (10)(13) as the linearized BDF2
plane P such that y 2 P and P is orthogonal to the Ox axis. Let projection scheme, since it relies on BDF2 time discretization of the
xV 2 P be the orthogonal projection of the center of V on P and xk, momentum equation at time tn+1 and the linearization of the
k = 1, . . . , m, m 6 12, are the projections of centers of all cells advective terms. Note that the step (10) is implicit. The matrix of
sharing a face with V. The values ax(xV) and ax(xk) can be dened by the corresponding linear algebraic system is non-symmetric, but
a linear interpolation of the velocity values at u-nodes. Once ax(xV) it is well conditioned thanks to the scaled identity matrix resulting
and ax(xk),k = 1, . . . , m, are computed, we consider the triangle fan a ug
n1
based on xV and xk, k = 1, . . . , m, as shown in Fig. 5 (right). Now from the term . A preconditioned Krylov subspace iterative
Mt n
ax(y) is dened by a linear interpolation between the values of ax in method turns out to be efcient solver, see Section 5. The implicit
the vertices of the triangle, which contains y. advectiondiffusion step largely relaxes the Courant condition for
the time step, which is now restricted by accuracy, rather than
Note that the discretization of momentum and continuity equa- by stability requirements.
tions is based on control volumes. The method is, however, not For a uniform time step, Mtn = Mt, n = 1, 2, . . ., the splitting
consistent with a classical nite volume approach, since for the scheme (10)(13) is found, for example, in [22] Section 3.3. In that
momentum equation the control volumes may fail to cover the en- paper, the method was shown to be second order accurate in time,
tire computational domain. if C2 = ;. We shall demonstrate in the series of numerical experi-
ments that the scheme retains second order accuracy if Mt varies
smoothly. In the case of outow boundary conditions, building a
4. Numerical time-integration
second order accurate stable pressure projection method is a
well-known problem, see, e.g., [24,25]. It is not our intention to ad-
Our method of choice for numerical time-integration is the 
n1 
@ ug
semi-implicit splitting scheme (also known as projection scheme 
dress this problem in the present paper. If one sets m  pn n
[21]): Given un, pn approximating u(t), p(t), nd approximations @n 
C2
un+1, pn+1 to u(t + Dtn), p(t + Dtn) in several steps. First, solve for in (10), then Guermond et al. [24] proved that the splitting method
auxiliary velocity ug n1 the advectiondiffusion problem with the
is up to 32 order the accurate (the actual order depends on a certain
lter applied to the advection terms: regularity index). However, for such explicit treatment of pressure
8
> a ug
n1 bun cun1 on outow boundary, our experiments show instability if m is not
>
>
< Mtn
G  un nun  un1  r ug g
n1  mD u n1 rpn ;
sufciently large. Therefore, we modied the splitting of boundary

n1 
@ ug conditions to ensure the numerical stability for higher Reynolds
>
> gn1 
: u jC1 g; @n  0:
> numbers. We are not aware of a convergence analysis for such
C2
modied splitting. In numerical experiments, no signicant up-
10
stream inuence was observed for outow conditions we use:
n n1 2 Developed vortex structures leave the computational domain
Here n = Mt /Mt , a = 1 + n/(n + 1), b = (n + 1), c = n /(n + 1). Next,
project ug
n1 on the divergence-free space to recover un+1: through outow boundary smoothly and retaining their shapes.
8
< au
> n1
 ug n1 =Mt n  rq 0;
Remark 4.1. Instead of the implicit lter in the projection step, as
n1 11
div u 0; in (8), we use the explicit lter G acting on advection terms. The
>
:
n  un1 jC1 n  g; qjC2 0: rationality behind such choice is that computing projection, with
implicit differential lter, on every time step is computationally
The problem (11) is reduced to the Poisson problem for q: expensive. Let us briey explain why the explicit lter still is
( efcient. Noting that Gr = r, we combine (10) and (11) to get
Dq a div ug n1 =Mt n ;

@q 
12
qj 0; 0: aun1 bun cun1
C2 @n C1
G  un nun  un1  r ug
n1
Mtn
Finally, update the pressure:
rpn  q mD ug
n1 : 14
pn1 n
p qm div ug
n1 : 13 n n1
Hence, for inviscid uid, if u and u are free of spurious modes,
The extra divergence term in the pressure correction step (13) is then the same is true for un+1. For m > 0, the viscous term can be the
known, see, e.g., [22,23], to reduce numerical boundary layers in source of spurious modes. However for small m, we observe that the
the pressure. production of such modes is not signicant and the scheme remains
M.A. Olshanskii et al. / Computers & Fluids 84 (2013) 231246 237

stable, while for large m, there is enough physical viscosity to damp the 3D lid-driven cavity ow for Re = {100, 400, 1000} and channel
the spurious modes. ows around a 3D square cylinder for Re = {20, 100, 103, 104} and a
For the purpose of comparison, we consider few alternative variable Reynolds number.
splitting schemes that have been shown to be efcient in other set-
tings. Thus, consider the second order projection scheme, with the 5.1. Example with an analytical solution
semi-Lagrangian method for treating the advection terms, as intro-
duced in [26,27]. The differences from the scheme (10)(13) are To assess the accuracy of the scheme on smooth solutions, we
the following. The rst predictor step (10) now reads consider the well known Ethier-Steinman exact NSE solution from
8 [31]. This problem was developed as a 3D analogue to the Taylor
> g
n1 bun cun1
> au
>
> d d
 mD ug
n1 rpn ;
vortex problem, for the purpose of benchmarking. Although unli-
< Mt kely to be physically realized, it is a good test problem because it
 15
> g n1 
@ ug is an exact NSE solution and has non-trivial vortical structure.
>
> n1 j 
>
: u C1 g;  0; For chosen parameters a,d and viscosity m, the exact NSE solution
@n 
C2 is given on [1, 1]3 by
where und and un1 d are given
by the semi-Lagrangian method: u aeax sinay dz eaz cosax dyemd
2
t
und xn1 ut n ; xnd , where xn+1
is the grid node and xnd is found as 2
a departing point at time tn of a characteristic that passes through v aeay sinaz dx eax cosay dzemd t
xn+1 at time tn+1. The equation for characteristics is integrated using w aeaz sinax dy eay cosaz dxemd
2
t
the second order method: 2
a 2ax
Mt n n n1 p e e2ay e2az 2 sinax dy cosaz dxeayz
yx n1
 u x ; 2
2    2 sinay dz cosax dyeazx
16
n n n 2
xnd xn1  Mtn 1 u y  un1 y : 2 sinaz dx cosay dzeaxy e2md t :
2 2
  In our experiment we set a = p/4, d = p/2 and vary m.
Similarly, one sets un1
d x
n1
u tn1 ; xn1
d , where the departure
n1
point xd is found from: First we compare the performance of different temporal discret-
izations if the spacial grid is uniformly rened. The errors in veloc-
Mt n Mtn1 n n1 ity and pressure are measured at time t = 0.1 and the results are
y xn1  u x ;
2 17 shown in Table 3. The time steps for BDF2 with semi-Lagrangian
n n1
Mt Mt (quadratic interpolation) was set two times smaller than for other
xn1
d xn1  1 nun y 1  nun1 y: methods, otherwise we observed no convergence with this meth-
2
od. All schemes except BDF2 with semi-Lagrangian (linear interpo-
Of course, xnd and xn1
d are not necessarily grid nodes and an interpo-
lation) demonstrated the expected second order of convergence.
lation should be done to dene ut n ; xnd and ut n1 ; xn1
d . In [27] the
The semi-Lagrangian method with quadratic interpolation demon-
quadratic Hermite interpolation was used to interpolate between un-
strates the second order of convergence in L2, but the convergence
knowns located in the vertices of cubic cells. To interpolate between
deteriorates in L1 norm. This may indicate the loss of the monoto-
face-centered unknowns on octree grids, in [6,7] the piecewise linear
nicity by the scheme and non-physical oscillations in numerical
interpolation was applied. To the best of our knowledge, an extension
solutions. Further, we will see that this is indeed the case for the
of higher order semi-Lagrangian methods to staggered octree grids is
example of the ow around a square cylinder. BDF2 with FD
not available in the literature. For the purpose of comparison, we
advective terms and VK show very similar accuracy. Thus, our
shall use both linear and quadratic interpolation. We point that build-
method of choice for further experiments is the BDF2 with FD
ing more accurate and stable semi-Lagrangian methods, for example,
advective uxes as potentially more robust than the van Kan
based on non-linear oscillatory-free interpolation procedures [28],
scheme, while demonstrating similar accuracy (we note that the
may be another way of developing staggered octree grid schemes.
van Kan scheme is based on the trapezoidal rule, which is well
However, such developments are not within the scope of the present
known to require certain care, when applied to ow equations
paper. In what follows, the scheme (15), (12), (13) is referred to as the
[32]).
BDF2 with semi-Lagrangian step.
In Section 3 we built an upwind discretization of the advection
A popular alternative, e.g., [29], to BDF2 scheme is the second
terms. We shall refer to it as the third order upwind (TOU) discret-
order projection method often attributed to van Kan [30]. This
ization (the order is related to uniformly rened grids). Since the
method approximates the equations at time tn+1/2. On the rst step
entire scheme is of the second order, one may be interested in
of the method, one nds ug n1 from

8 using the second order upwind stencil for advective derivatives,


> g n   g n g n next referred to as SOU. Table 4 compares the accuracy of two dis-
> n1
< u Mtu
n
n1 n1
G  un 2n un  un1  r u 2u  mD u 2u rpn ;
 cretizations. From this experiment we conclude that the higher or-
g 
> ug
> n1 j @u n1
 0: der approximation of the advection terms leads to more accurate
: C1 g; @n 
C2 solutions. Further we will see that for the benchmark problem with
18 non-smooth solutions and adaptively rened grids TOU is still
advantageous compared to SOU. Thus, the third order upwind
We shall refer to this method as the linearized van Kan (VK) projec- scheme for advective terms is our preferred approach.
tion scheme. In the next two sets of experiments, we demonstrate the role of
the low-pass lter on the coarse-to-ne cells interface and the con-
5. Numerical experiments vergence of the method on a sequence of rened non-uniform
grids. To compute the results in Tables 5 and 6, we rened the
In this section, the performance of the method is veried for a mesh inside the sphere of the radius 0.5 with the center in
set of benchmark tests. We compare several options for spacial (0, 0, 0). The sizes of the largest and the smallest cells are hmax
and temporal discretizations. First, a smooth 3D Beltrami type ow and hmin, respectively. Obviously, hmax = hmin corresponds to the
with known analytical solution is considered. Next we compute uniform grid. Table 5 shows the results of computations for two
238 M.A. Olshanskii et al. / Computers & Fluids 84 (2013) 231246

Table 3
Errors for different temporal discretizations on uniform meshes.

Viscosity m = 105 m = 10 2


Mesh size h 1/16 1/32 1/64 1/16 1/32 1/64
Time step Mt 1/200 1/400 1/800 1/200 1/400 1/800
BDF2 with FD advective terms
ku  uh kL1 1.7e3 4.2e4 1.1e4 1.7e3 3.5e4 7.6e5
ku  uh kL2 4.0e4 9.7e5 2.4e5 4.0e4 9.5e5 2.3e5
kp  ph kL2 8.4e3 2.2e3 5.7e4 8.0e3 2.0e3 4.7e4

BDF2 with semi-Lagrangian (linear interpolation)


ku  uh kL1 3.3e2 1.8e2 9.7e3 3.2e2 1.7e2 9.0e3
ku  uh kL2 8.6e3 4.4e3 2.2e3 8.5e3 4.3e3 2.1e3
kp  ph kL2 2.9e1 1.3e1 6.4e2 2.8e1 1.3e1 6.4e2

BDF2 with semi-Lagrangian (quadratic interpolation)a


ku  uh kL1 3.0e4 8.3e4 5.2e4 2.5e3 8.4e4 1.0e3
ku  uh kL2 5.6e4 1.4e4 3.8e5 5.7e4 1.4e4 3.4e5
kp  ph kL2 1.4e2 6.3e3 5.0e3 2.2e2 5.4e3 1.3e3

VK
ku  uh kL1 1.7e3 4.2e4 1.2e4 1.6e3 3.4e4 7.5e5
ku  uh kL2 4.0e4 9.7e5 2.4e5 3.9e4 9.4e5 2.3e5
kp  ph kL2 8.0e3 2.1e3 5.6e4 7.0e3 1.6e3 2.8e4
a
Here the time step was equal Dt=2.

Table 4
Errors for two FD discretizations of the advective operator on uniform meshes, Table 6
m = 102. Convergence of the method on a sequence of rened non-uniform octree grids,
m = 0.01; Results are shown for the BDF2 with FD advective terms, with lter.
Upwind order SOU TOU
Mesh size hmax 1/8 1/16 1/32 1/64
Mesh size h 1/16 1/32 1/64 1/16 1/32 1/64 Mesh size hmin 1/32 1/64 1/128 1/256
Time step Mt 1/100 1/200 1/400 1/100 1/200 1/400 Time step Dt 1/50 1/100 1/200 1/400
ku  uh kL1 4.3e3 8.4e4 1.6e4 1.6e3 3.4e4 7.5e5 ku  uh kL1 1.1e2 3.1e3 7.9e4 1.6e4
ku  uh kL2 8.3e4 1.6e4 3.2e5 3.9e4 9.4e5 2.3e5 ku  uh kL2 3.6e3 7.6e4 1.8e4 4.3e5
kp  ph kL2 1.5e2 4.1e3 1.1e3 8.0e3 2.1e3 5.5e4 kp  ph kL1 6.3e2 9.8e3 2.5e3 7.0e4
kp  ph kL2 1.5e2 5.8e3 1.7e3 4.9e4

values of viscosity, m = 0 (the Euler limit) and m = 1 (diffusion dom-


inated case). Similar to what was observed for the discrete Helm- 5.2. The 3D driven cavity
holtz decomposition, for small values of the viscosity parameters
the local mesh renement leads to the growth of the error. Since The next numerical example is the standard lid driven cavity
the spurious modes are oscillatory and tailored to the coarse-to- benchmark problem. The problem setup is illustrated in Fig. 6.
ne grid interface, the L1-norm of the velocity error is more sensi- One looks for the steady solution of the ow Eqs. (1) in
tive indicator of the instability than the L2 norm. The error in pres- X = (0, 1)3, with u = (1, 0, 0)T for z = 1 and no-slip/no-penetration
sure is not much inuenced by the local renement. For m = 1 the conditions on other parts of the boundary. In spite of the simplest
spurious oscillatory modes are damped by the dominating physical of geometrical settings, the cavity ows display many important
diffusion, so the error growth is very modest in this case. Other- uid mechanical phenomena [34]. Note that due to the discontin-
wise, the course-to-ne grid interface lter provides the auxiliary ues boundary conditions, the solution to the problem is singular in
damping of the modes and stabilizes the problem. In further exper- the neighborhood of upper edges.
iments of this paper, we always use the lter with TOU discretiza- We are interested in steady solutions for Re = 100, 400, 1000.
tion of advection terms (unless otherwise noted). Table 6 The projection method (10)(13) was used to integrate in time un-
demonstrates the second order convergence for velocity and al- til the equilibrium steady state is recovered. For this benchmark
most the second order convergence for pressure on the sequence problem, the coarsest mesh of hmax = 1/32 was used; further the
of rened octree grids. grid was rened towards the boundary (ve grid layers with

Table 5
Dependence of errors on the number of tree levels for locally rened meshes. The effect of the lter.

Viscosity m=0 m=1


Mesh size hmax 1/16 1/16 1/16 1/16 1/16 1/16 1/16 1/16
Mesh size hmin 1/16 1/32 1/64 1/128 1/16 1/32 1/64 1/128
BDF2 with FD advective terms, no lter
ku  uh kL1 1.7e3 1.6e2 2.2e2 2.9e2 1.2e3 1.3e3 1.6e3 1.8e3
ku  uh kL2 4.0e4 1.1e3 1.4e3 1.4e3 3.1e4 3.9e4 5.3e4 6.5e4
kp  ph kL2 8.0e3 6.9e3 6.2e3 5.4e3 4.0e3 9.5e3 1.4e2 1.7e2

BDF2 with FD advective terms, with lter


ku  uh kL1 1.7e3 2.6e3 3.3e3 3.2e3 1.2e3 1.4e3 1.6e3 1.8e3
ku  uh kL2 4.0e4 5.7e4 7.8e4 9.1e4 3.1e4 3.9e4 5.3e4 6.5e4
kp  ph kL2 8.0e3 6.9e3 5.8e3 5.2e3 4.0e3 9.5e3 1.4e2 1.7e2
M.A. Olshanskii et al. / Computers & Fluids 84 (2013) 231246 239

Fig. 6. Left: The 3D driven cavity problem setup; Right: The centerline ((0.5, 0.5, z), 0 6 z 6 1) u-velocities compared to reference data from [33].

h = 1/64 and two grid layers with hmin = 1/256). This resulted in the Problem Q3: Unsteady ow with varying Reynolds number for
983256 pressure degrees of freedom and 2936724 velocity degrees e 2:25 sinpt=8.
U
of freedom. Fig. 6 (right) shows the computed centerline
((0.5, 0.5, z), 0 6 z 6 1) u-velocities of the steady state solution. The initial condition is u = 0 for t = 0.
They are in a very good agreement with the reference results of To realize possible stability limitations of the proposed tech-
Wong and Baker [33], who used a solution-adapted tetrahedral niques, we additionally compute the ow around cylinder for
mesh and a conforming nite element method to compute the Re = 103 and Re = 104.
solution in velocityvorticity variables. The statistics of interest are the following:
Fig. 7 shows the contours of spanwise vorticity for the midplane
y = 0.5. The plots of the midplane velocity elds are shown in Fig. 8. The difference Dp = p(x2)  p(x1) between the pressure values
Both vorticity contours and velocity elds agree well with those of in points x1 = {0.2, 0.205, 0.55} and x2 = {0.2, 0.205, 0.45}.
[33,35] and fairly well illustrate the recovered cavity ow dynam- The drag coefcient given by an integral over the surface of the
ics. Besides the primary eddy (here we use the terminology of cylinder S:
[34]), the method is able to capture upstream secondary eddy for
Z  
Re = 1000 and Re = 400, bottom end-wall vortices for all values of 2 @u  t
Re and upper end-wall vortices for Re = 1000 and Re = 400; down-
C drag
e2
m nx  pnz ds: 19
DH U S @n
stream swirls are visible for Re = 1000 and Re = 400. All this ow
Here n = (nx, ny, nz)T is the normal vector to the cylinder surface
structures transit smoothly over coarse-to-ne meshes interfaces.
pointing to X and t = (nz, 0, nx)T is a tangent vector.
The ability of the method to correctly predict secondary ow struc-
The lift coefcient given by an integral over the surface of the
tures indicates the low numerical diffusion of the scheme.
cylinder:
5.3. Flow around cylinder Z  
2 @u  t
C lift 
e2
m nz pnx ds: 20
The nal numerical example is the laminar 3D channel ow DH U S @n
around a cylinder of square cross-section. The problem was de- If a periodic regime is attained by the solution to problem Q2,
ned within the DFG priority research program Flow simulation then one is interested in the Strouhal number Df U e 1 , where f
on high performance computers by Schfer and Turek in [36] is the frequency of vortices separation.
and further studied in, e.g., [37,38].
The ow domain is shown in Fig. 9. The no-slip and no-penetra- For problem Q3, the reference velocity in Cdrag and Clift is taken
tion boundary condition u = 0 is prescribed on the channel walls for t = 4.
and the cylinder surface. The parabolic velocity prole is set on The feature of the problem is the singularity of geometry: the
the inow boundary: edges of a square cylinder are likely to destroy the regularity of
e T the solution to (1). This makes the accurate numerical prediction
u 0; 0; 16 UxyH  xH  y=H4 on Cinflow ;
of the lift and drag coefcients difcult and a local grid renement
with H = 0.41 and a peak velocity U. e The Reynolds number, in the neighborhood of the cylinder is necessary.
e is dened based on the cylinder width D = 0.1. The vis-
Re m1 D U, To compute the drag and lift coefcient, one may replace the
cosity coefcient m is set to 103. In [36] three benchmark problems surface integrals in (19) and (20) by integration over the whole do-
were suggested: main. This evaluation technique is known in the nite element
community and has been used in [39,37].
e 0:45.
Problem Q1: Steady ow with Re 20 U Assume u = (u, v, w)T and p solve (1), then applying the integra-
e 2:25.
Problem Q2: Unsteady periodic ow with Re = 100 U tion by part one checks (cf. [37]) the following identities:
240 M.A. Olshanskii et al. / Computers & Fluids 84 (2013) 231246

Fig. 7. Spanwise vorticity for the midplane y = 0.5 and Re = 100 (left), Re = 400 (right), Re = 1000 (bottom).

Z   
e @w preconditioner and the pressure Poisson problem was solved with
C drag C u  rw u mrw  ru  p@ z u dx
X @t the GMRES method preconditioned by one V-cycle of the algebraic
Z    21
multigrid method from [40]. Average numbers of iterations
e @u
C lift C u  ru u mru  ru  p@ x u dx; required to ensure the Euclidian norm of residual is less than 1e-
X @t
13 are shown in Table 7. These values correspond to the experi-
e
C 2
, for any u 2 H1(X) such that ujS = 1 and uj@ X/S = 0.
DH e
U2
ments with the problem Q1 and time step Dt = 0.1. For problems
Q2 and Q3 we set Dtn = max{0.1, 10hmin(maxjunj)1}. While
If the NavierStokes solution is sufciently smooth and one iteration numbers in pressure solve were nearly the same for
computes drag and lift coefcients of a nite element numerical problems Q2 and Q3, the iteration numbers in advection
solution, then it is proved in [37] that using the volume based for- diffusionreaction solve were smaller and almost independent of
mulas (21) gives more accurate values of drag and lift coefcients gn1
the renement level due to the dominant zero order term a uMtn .
compared to (19) and (20). Although for this test problem the solu-
tion is not smooth, it turned out that using (21) still leads to more For all three problems, the reference [36] collects several DNS
accurate results. results based on various nite element, nite volume discretiza-
Now we discuss few technical details of evaluating (21). The tions of the NavierStokes equations and the Lattice Boltzmann
identities (21) hold for any u satisfying ujS = 1 and uj@ X/S = 0. method. In [36], the authors provide reference intervals where
However, if integrals in (21) are evaluated for a numerical solution, the statistics should converge. Using a higher order nite element
then the analysis of [37] suggests that accuracy may depend on the method and locally rened adaptive meshes, more accurate refer-
regularity of u. For the nite difference method we dene u in ence values of Cdrag, Clift and Dp were found in [37] for problem Q1.
pressure nodes and consider the discretely harmonic function Thus, we rst present in Table 8 the results for problem Q1 com-
(divhrhu = 0). All derivatives in (21) were approximated with the puted with second and third order approximations of advective
second order of accuracy. terms. We note that the differences in CPU times for both cases
The numerical solutions to problems Q1Q3 were computed on were negligibly small. Similar to the case of uniform grids and ana-
a sequence of locally rened meshes, see Table 7 for the account of lytical solution, the TOU discretization shows somewhat more
corresponding discrete space dimensions. The cutaway of a grid accurate results. For a sequence of locally rened octree meshes,
with hmin = 1/32 and hmax = 1/1024 is shown in Fig. 10. The linear Table 8 demonstrates the convergence of computed drag, lift, and
algebraic systems were solved iteratively. Thus, the discrete pressure drop to reference values. Here and in Table 9 we addition-
advectiondiffusion-reaction problem arising on the predictor step ally include the results for the 5-renement levels mesh (hmax = 1/
(10) of the method was solved by the BiCGstab method with ILU(0) 32, hmin = 1/1024), which appear to be very close to those for
M.A. Olshanskii et al. / Computers & Fluids 84 (2013) 231246 241

Fig. 8. The 2D planar projections of steady state velocity elds at the midplanes for the 3D driven cavity problem with Re = 100, 400, 1000.

Table 7
Number of velocity and pressure d.o.f. for different meshes. NADR and NPP are the
average numbers of iterations in advectiondiffusionreaction and pressure solvers
for problem Q1, respectively.

hmin hmax u d.o.f. p d.o.f. NADR NPP


1/256 1/256 1246359 416150 23 30
1/512 1/256 1402593 467110 27 37
1/1024 1/256 2707497 897330 47 41
1/2048 1/256 12828221 4245010 112 66
1/1024 1/32 1969827 645393 45 44

Clift are the maximum lift and drag coefcients after the ow at-
Fig. 9. Computational domain for ow around a cylinder with square cross-section.
tains a periodic regime. For problem Q3, Cdrag and Clift are the max-
imum lift and drag coefcients over the whole time interval
t 2 [0, 8], the pressure drop is computed at t = 8. Note that [36] does
2-renement levels (hmax = 1/256, hmin = 1/1024), indicating that not give reference intervals for problem Q2, and we simply show
the renement around cylinder rather than in the bulk domain is the maximum and minimum values of lift, drag, and the Strouhal
crucial for accurate computation of the statistics. numbers for the DNS results included in [36]. However, these
Less accurate reference data is available for problems Q2 and intervals can be not very accurate. It is expected that Re = 100 is
Q3. Table 9 summarizes the results computed by the present meth- close to the critical Reynolds number (when transition from the
od and those available in the literature. For problem Q2, Cdrag and steady state to unsteady periodic ow occurs). Therefore, the
242 M.A. Olshanskii et al. / Computers & Fluids 84 (2013) 231246

Fig. 10. The cutaway of the grid at y = 0.205 for hmax = 1/32 and hmin = 1/1024.

Table 8
Problem Q1: Convergence of drag, lift, and pressure drop to reference values for locally rened grid.

hmin hmax Cdrag Clift Dp Cdrag Clift Dp


SOU TOU
1/256 1/256 7.766 0.05951 0.1720 7.726 0.07122 0.1717
1/512 1/256 7.589 0.06671 0.1727 7.683 0.06814 0.1724
1/1024 1/256 7.609 0.06796 0.1732 7.706 0.06829 0.1745
1/2048 1/256 7.631 0.06868 0.1737 7.727 0.06864 0.1750
Braack & Richter 7.767 0.06893 0.1757 7.767 0.06893 0.1757
Schfer & Turek 7.57.7 0.060.08 0.1720.18 7.57.7 0.060.08 0.1720.18
1/1024 1/32 7.631 0.06821 0.1727 7.716 0.0678 0.1749

Table 9
Lift, drag, and the Strouhal number for problem Q2; Lift, drag, and pressure drop for problem Q3.

hmin hmax Problem Q2 Problem Q3


Cdrag Clift St Cdrag Clift Dp
a
1/256 1/256 6.204 0.07631 6.038 0.3497 0.1461
1/512 1/256 5.222 0.04407 0.326 5.178 0.0381 0.1284
1/1024 1/256 4.679 0.02697 0.297 4.655 0.0168 0.1367
1/2048 1/256 4.484 0.03166 0.307 4.475 0.0300 0.1407
Schafer & Turek 4.324.67b 0.0150.05b 0.270.35b 4.34.5 0.010.05 0.14 0.12
1/1024 1/32 4.671 0.02666 0.306 4.658 0.0172 0.1374
a
Solution has not attained a periodic regime for t 2 [0, 16].
b
Reference intervals for problem Q2 may be not very accurate.

Fig. 11. The evolution of drag (left) and lift (right) coefcients for the ow around a square cylinder with Re = 100 (problem Q2) computed with hmax = 1/32, hmin = 1/1024.

simplest reasonable criteria of the success of a numerical method the spanwise vorticity contours at time t = 16 for the midplane
for this problem: Is a stable periodic ow (including vortex separa- y = 0.205. The gure illustrates the developed von Karman vortex
tion and von Karman vortex street) captured by a method for street behind the cylinder. We note that the periodic unsteady
Re = 100? If no, then the method is likely to be excessively diffusive solution is recovered with BDF2 with FD advective terms scheme,
or unstable. while the semi-Lagrangian method with linear interpolation pro-
For the present methods a stable periodic ow is recovered duces steady solutions. The semi-Lagrangian method with qua-
starting with hmin = 1/512. Fig. 11 plots the evolution of the drag dratic interpolation was found unstable for this problem.
and lift coefcients for time interval t 2 [0, 16]. It is clear that the From the regularity theory of the linearized NavierStokes
periodic regime is attained. In Fig. 12 we show the snapshot of problem [41], we may expect that pressure and velocity become
M.A. Olshanskii et al. / Computers & Fluids 84 (2013) 231246 243

Fig. 12. Problem Q2 (Re = 100): Spanwise vorticity at time t = 16 for the midplane y = 0.205. The top plot shows the development of vortex street for solution by BDF2 with FD
advective terms; the bottom plot shows an over-diffusive solution computed by BDF2 with semi-Lagrangian method (linear interpolation). Both solutions were computed
with hmax = 1/256 and hmin = 1/1024 at t = 16.

Fig. 13. Problem Q2 (Re = 100): The midplane pressure contours around a square cylinder. The solution shown was computed with hmax = 1/256 and hmin = 1/1024 at t = 16.

Fig. 14. Problem Q2: Streamlines of the developed ow around a square cylinder for Re = 100. The streamlines are selected for two uid layers entering the domain slightly
above and below x = 0.21.

less regular in the neighborhoods of cylinder edges: The theory bounded in the vicinity of the edges. Indeed, Fig. 12 shows sharp
predicts p R H1(X) and u R H2(X)3. This, in particular, implies that internal layers in vorticity originating from upstream edges of
the pressure gradient and the second velocity derivatives are un- the cylinder and Fig. 13 presents the midplane pressure contours
244 M.A. Olshanskii et al. / Computers & Fluids 84 (2013) 231246

Fig. 15. Problem Q2 (Re = 100): Pressure isosurfaces and vorticity isosurface jwj = 20 colored by the absolute velocity. The plots illustrate solution computed with hmax = 1/
256 and hmin = 1/1024 at t = 16. (For interpretation of the references to color in this gure legend, the reader is referred to the web version of this article.)

Fig. 16. Channel ow around a square cylinder at Re = 1000: Spanwise vorticity for the midplane y = 0.205. Pressure isosurfaces and vorticity isosurface jwj = 100 colored by
the absolute velocity. The plots illustrate solution computed with hmax = 1/256 and hmin = 1/1024 at t = 8. (For interpretation of the references to color in this gure legend, the
reader is referred to the web version of this article.)

around the cylinder. The pressure has large gradients near the up- grid renement is necessary and why accurate evaluation of drag
stream edges. This lack of solution smoothness explains why local and lift coefcients for the ow around a square cylinder is hard.
M.A. Olshanskii et al. / Computers & Fluids 84 (2013) 231246 245

Fig. 17. Channel ow around a square cylinder at Re = 10000: Spanwise vorticity for the midplane y = 0.205. Pressure isosurfaces and vorticity isosurface jwj = 100 colored by
the absolute velocity. The plots illustrate solution computed with hmax = 1/256 and hmin = 1/1024 at t = 8. (For interpretation of the references to color in this gure legend, the
reader is referred to the web version of this article.)

The 3D structure of the ow with Re = 100 is seen from Figs. 14 (approximately at z = 0.2), traveling vortices appear on many scales
and 15, where we show the streamlines of the developed ow, and interact with each other in a stochastic way. We may conclude
pressure isosurfaces and the isosurfaces jwj = 20 of vorticity col- that the ow is turbulent. Nevertheless, for this type of ow the
ored by the absolute values of velocity, juj. method produces a numerically stable solution up to the time
Finally, we run the same test with higher Reynolds numbers, t = 8, which was the nal time of computations. A multiscale struc-
Re = 103 and Re = 104. We have not found other data in the litera- ture of the ow is illustrated in Fig. 17.
ture for this problem with higher Re numbers to make a compari- We conclude that for turbulent ows the numerical dissipation
son. The goal of performing the tests is to verify if the method produced by the present method can be sufcient to diffuse the en-
remains stable when Re is increasing and to quantify stability lim- ergy of resolved structures, although an additional modeling is
itations (if any). Note that for smooth solutions we got stable re- likely required to simulate the effect of unresolved scales in a prop-
sults for arbitrary small values of the viscosity coefcient, see er way and recover meaningful averaged statistics.
Table 5. For the ow around a square cylinder problem, the situa-
tion is more complicated: A solution has sharp boundary and inter- 6. Conclusions
nal layers and the ow becomes turbulent for sufciently large
Reynolds number. This was eventually the case for Re = 104. Octree cartesian grids are super-convenient for fast mesh adap-
For ow around a square cylinder at Re = 103, we observe a sta- tation, reconstruction and data access. Finite difference and nite
ble numerical solution, which demonstrates a quasi-periodic volume methods on octree grids provide a cost effective alternative
behaviour. Now large vortices periodically form in the internal lay- to discontinuous Galerkin methods. This efciency, however,
ers originating from two upstream edges of the cylinder rather comes at a price: local renement does not lead automatically to
than shed behind the cylinder. These vortices are convected down- better accuracy and higher order discretizations require large no-
stream and interact in a complicated way with each other and dal stencils and higher order interpolation. In this paper, we intro-
smaller eddies created near upper and bottom walls. A ow in duced an extension of staggered grid MAC scheme such that
the recirculation region behind the cylinder is close to chaotic. specic instabilities stemming from local grid renement are sup-
All these make an intricate picture of the (still laminar) ow over pressed. The discretization is second order accurate and stable. It
a square cylinder in a channel at Re = 103. The computed solution involves the construction of only planar second order polynomials
is illustrated in Fig. 16, where we show spanwise vorticity isolines and linear interpolation. The performance of the scheme was stud-
and isosurfaces for pressure and vorticity. For the vorticity, we ied for a set of smooth and non-smooth benchmark solutions. The
choose to show the isosurface jwj = 100 as a good illustration of method produces stable low dissipative second order accurate
vorticity generation around the cylinder. solutions and compares favorably to a scheme built on semi-
For Re = 104 we observe no regular ow pattern: An unstable Lagrangian treatment of advection. The scheme was found to be
boundary layer develops near channel walls close to the inlet numerically stable also for certain high Reynolds number ows.
246 M.A. Olshanskii et al. / Computers & Fluids 84 (2013) 231246

References [22] Guermond JL, Minev P, Shen J. An overview of projection methods for
incompressible ows. Comput Method Appl Mech Eng. 2006;195:601145.
[23] Prohl A. Projection and quasi-compressibility methods for solving the
[1] Flaherty JE, Loy RM, Shephard MS, Szymanski BK, Teresco JD, Ziantz LH.
incompressible NavierStokes equations. B.G. Teubner (Stuttgart); 1997.
Adaptive local renement with octree load balancing for the parallel solution
[24] Guermond JL, Minev P, Shen J. Error analysis of pressure-correction schemes
of three-dimensional conservation laws. J Parallel Distrib Comput 1997;47:
for the time-dependent stokes equations with open boundary conditions.
13952.
SIAM J Numer Anal 2005;42:239258.
[2] Remacle J-F, Flaherty JE, Shephard MS. An adaptive discontinuous Galerkin
[25] Angot P, Cheaytou R. Vector penalty-projection method for incompressible
technique with an orthogonal basis applied to compressible ow problems.
uid ows with open boundary conditions. In: Proceedings of 19th conference
SIAM Rev 2003;45:5372.
on scientic computing, Algoritmy 2012; 2012. p. 21929.
[3] Murman SM. Compact upwind schemes on adaptive octrees. J Comput Phys
[26] Xiu D, Karniadakis GE. A semi-lagrangian high-order method for Navier
2010;229:1671180.
Stokes equations. J Comput Phys 2001;172:65884.
[4] Strain J. Tree methods for moving interfaces. J Comput Phys 1999;151:
[27] Min C, Gibou F. A second order accurate projection method for the
61648.
incompressible NavierStokes equations on non-graded adaptive grids. J
[5] Sochnikov V, Efrima S. Level set calculations of the evolution of boundaries on
Comput Phys 2006;219:91229.
a dynamically adaptive grid. Int J Numer Method Eng 2003;56:191329.
[28] Frst J. A weighted least square scheme for compressible ows. Flow Turbul
[6] Losasso F, Gibou F, Fedkiw R. Simulating water and smoke with an octree data
Combust 2006;76:33142.
structure. ACM T Graphic (TOG) 2004;23:45762.
[29] Turek S. Efcient solvers for incompressible ow problems: an algorithmic
[7] Losasso F, Fedkiw R, Osher S. Spatially adaptive techniques for level set
approach in view of computational aspects. Lect notes in computational
methods and incompressible ow. Comput Fluids 2006;35:9951010.
science and engineering, vol. 6. Springer; 1999.
[8] Popinet S. An accurate adaptive solver for surface-tension-driven interfacial
[30] Kan JV. A second-order accurate pressure-correction scheme for viscous
ows. J Comput Phys 2009;228:583866.
incompressible ow. SIAM J Sci Statist Comput 1986;7:87091.
[9] Fuster D, Agbaglah G, Josserand C, Popinet S, Zaleski S. Numerical simulation of
[31] Ethier C, Steinman D. Exact fully 3d NavierStokes solutions for benchmarking.
droplets bubbles and waves: state of the art. Fluid Dyn Res 2006;41:065001.
Int J Numer Meth Fluids 1994;19:36975.
[10] Nikitin KD, Olshanskii MA, Terekhov KM, Vassilevski YV. A numerical method
[32] Kay DA, Gresho PM, Grifths DF, Silvester DJ. Adaptive time-stepping for
for the simulation of free surface ows of viscoplastic uid in 3D. J Comput
incompressible ow Part II: NavierStokes equations. SIAM J Sci Comput
Math 2011;29:60522.
2010;32:11128.
[11] Nikitin K, Vassilevski YV. Free surface ow modelling on dynamically rened
[33] Wong KL, Baker AJ. A 3d incompressible NavierStokes velocityvorticity weak
hexahedral meshes. Rus J Numer Anal Math Model 2008;23:46985.
form nite element algorithm. Int J Numer Method Fluids 2002;38:99123.
[12] Szeliski R. Rapid octree construction from image sequences. CVGIP: Image
[34] Shankar PN, Deshpande MD. Fluid mechanics in the driven cavity. Annu Rev
Underst 1993;58:2332.
Fluid Mech 2000;32:93136.
[13] Popinet S. Gerris: a tree-based adaptive solver for the incompressible Euler
[35] Zunic Z, Hribersek M, Skerget L, Ravnik J. 3d Driven cavity ow by mixed
equations in complex geometries. J Comput Phys 2003;190:572600.
boundary and nite element method. In: Wesseling EOP, Periaux J, editors.
[14] Min C, Gibou F. A second order accurate level set method on non-graded
European conference on computational uid dynamics, ECCOMAS CFD 2006;
adaptive cartesian grids. J Comput Phys 2007;225:30021.
2006.
[15] Gibou F, Min C, Ceniceros H. Finite difference schemes for incompressible
[36] Schfer M, Turek S. Benchmark computations of laminar ow around a
ows on fully adaptive grids. Int Ser Numer Math 2006;154:199208.
cylinder 1996;52:54766.
[16] Lebedev VI. Difference analogues of orthogonal decompositions, basic
[37] Braack M, Richter T. Solutions of 3d NavierStokes benchmark problems with
differential operators and some boundary problems of mathematical
adaptive nite elements. Comput Fluids 2006;35:37292.
physics. I. USSR Comput Math Math Phys 1964;4(3):6992.
[38] Bowers AL, Rebholz LG, Takhirov A, Trenchea C. Improved accuracy in
[17] Lebedev VI. Difference analogues of orthogonal decompositions, basic
regularization models of incompressible ow via adaptive nonlinear
differential operators and some boundary problems of mathematical
ltering. Int J Numer Method Fluids 2012;70:80528.
physics. II. USSR Comput Math Math Phys 1964;4(4):3650.
[39] John V. Higher order nite element methods and multigrid solvers in a
[18] Harlow F, Welch J. Numerical calculation of time-dependent viscous
benchmark problem for 3d NavierStokes equations. Int J Numer Meth Fluids
incompressible ow of uid with free surface. Phys Fluids 1965;8:21829.
2002;40:77598.
[19] Nicolaides RA. Analysis and convergence of the MAC scheme I. The linear
[40] Henson VE, Yang UM. Boomeramg: a parallel algebraic multigrid solver and
problem. SIAM J Numer Anal 1992;29:157991.
preconditioner. Appl Numer Math 2002;41:15577.
[20] Mullen J, Fischer P. Filtering techniques for complex geometry uid ows.
[41] Dauge M. Stationary Stokes and NavierStokes systems on two- or three-
Commun Numer Method Eng 1999;15:918.
dimensional domains with corners. Part I: linearized equations. SIAM J Math
[21] Chorin A. Numerical solution of the NavierStokes equations. Math Comput
Anal 1989;20:7497.
1968;22:74562.

Das könnte Ihnen auch gefallen