Keywords

These keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.

1 Introduction

Finite volume (FV) schemes and conservative schemes are so strongly connected, that often these two terms are used synonymously. Indeed all FV schemes conserve the quantities of the underlying discretized flux-equations. The inverse statement however is not true: A set of discrete equation can be conservative, even if a form other than the flux form is the starting point of the scheme. This extra freedom can be beneficial to fulfill additional requirements. In the case presented here this requirement is a low dissipation of the scheme. This allows the direct numerical simulation (DNS) of turbulence and acoustics. Further, a high discretization order in space and time is important to keep the computational cost of simulations of large physical systems as low as possible.

We use a skew-symmetric finite difference scheme which meets the afore mentioned properties, which builds on similar concepts as [4, 12]. As computational variables for the equations of compressible flow the quantities \((\sqrt{\rho },\sqrt{\rho }u_\alpha , p)\) are used. The conserved quantities of mass, \(\sum \sqrt{\rho }^2\), momentum, \(\sum \sqrt{\rho }(\sqrt{\rho }u_\alpha ) \), and total energy, \(\sum p/(\gamma -1) + (\sqrt{\rho }u_\alpha )^2/2 \), are a consequence of the consistency of the discrete equations and a proper time stepping. They are not enforced by formulating the balance of these terms as in FV methods. Arbitrary order in space and time can be achieved. The scheme is computationally efficient in space as it builds on (non-upwind) finite-differences and point-wise multiplication. However, for full conservation an implicit time stepping scheme is needed. The resulting nonlinear system is solved by fix point iterations which is found to converge satisfactory well for time steps similar to those of an explicit scheme.

We present resolved calculations of a turbulent and transonic boundary layers, as well as a Richtmyer-Meshkov instability and one-dimensional shock problems.

2 Numerical Scheme

Here we provide a short overview of the skew-symmetric finite-difference scheme. A detailed derivation and discussion is out of scope of this paper but can be found in [10] for the spatial discretisation and [2] for the time stepping procedure.

Compressible flow is described by the Navier-Stokes equations which state the evolution of mass, momentum and energy:

$$\begin{aligned} \partial _t \rho + \partial _{x_\beta } \rho u_\beta&= 0 \end{aligned}$$
(1)
$$\begin{aligned} \partial _t \rho u_\alpha + \partial _{x_\beta } (\rho {u_\beta } u_\alpha ) + \partial _{x_\alpha } p&= \partial _{x_\beta } \tau _{\alpha \beta } \end{aligned}$$
(2)
$$\begin{aligned} \partial _t \left( \rho \left[ e + \frac{u_\alpha u_\alpha }{2}\right] \right) + \partial _{x_\beta } \left( \rho u_\beta \left[ e +\frac{u_\alpha u_\alpha }{2} +\frac{p}{\rho }\right] \right)&= \partial _{x_\alpha } u_\beta \tau _{\alpha \beta } + \partial _{x_\alpha } \phi _\alpha . \end{aligned}$$
(3)

The \(\rho \) is the density, \(u_\alpha \) is the \(\alpha ^{th}=1,2,3\) velocity component. Pressure is \(p\) and \(\tau _{\alpha \beta }= \mu (\partial _{x_\alpha }u_\beta + \partial _{x_\beta }u_\alpha ) +(\mu _d -\mu 2/3) \delta _{\alpha \beta }\partial _{x_\gamma }u_\gamma \) is the Newtonian friction. The heat flux is given by \(\phi _\alpha = \lambda \partial _{x_\alpha } T \) with the heat conductivity \(\lambda \). Ideal gas with the internal energy \(e=(p/\rho ) /(\gamma -1)\) and adiabatic exponent \(\gamma \) is assumed in the following. Summing convention is assumed.

A pure rewriting of the momentum equations leads to the equations in skew-symmetric form

$$\begin{aligned}&\partial _t \rho + \partial _{x_\beta } \rho u_\beta = 0 \end{aligned}$$
(4)
$$\begin{aligned}&\frac{1}{2}\left( \partial _t\rho \cdot + \rho \partial _t\cdot \right) u_\alpha +\frac{1}{2}\left( \partial _{x_\beta } u_\beta \rho \cdot + u_\beta \rho \partial _{x_\beta } \cdot \right) u_\alpha + \partial _{x_\alpha } p = \partial _{x_\beta } \tau _{\alpha \beta } \end{aligned}$$
(5)
$$\begin{aligned}&\frac{1}{\gamma -1} \partial _t p + \frac{\gamma }{\gamma -1} \partial _{x_\beta } \left( u_\beta p \right) - u_\alpha \partial _{x_\alpha } p\\&=- u_\alpha \partial _{x_\beta }\tau _{\alpha \beta } \partial _{x_\beta } u_\alpha \tau _{\alpha \beta } + \partial _{x_\alpha } \phi _\alpha \nonumber \end{aligned}$$
(6)

It is understood that the space and time derivatives in the first two terms of (5) act also on \(u\) right of the parentheses, which is marked by a ,,\(\cdot \)”. The momentum equation is called skew-symmetric, because the resulting spatial and temporal differentiation operators are skew-symmetric. The skew-symmetry of these operators leads to the analytical conservation of mass, momentum and energy. The kinetic energy was split from the total energy equation to arrive at an equation for the internal energy. To preserve the skew-symmetry in the discretization, skew symmetric derivative matrices \(D^T = -D\) are used.

Morinishi’s rewriting, [7], transforms the time derivative in the momentum equations (5) to \( \frac{1}{2}\left( \partial _t \rho \cdot + \rho \partial _t \cdot \right) u_\alpha = \sqrt{\rho } \partial _t (\sqrt{\rho } u_\alpha ). \) and leads to:

$$\begin{aligned} \sqrt{\rho } \partial _t (\sqrt{\rho } u_\alpha ) + \frac{1}{2}\left( \partial _{x_\beta } u_\beta \rho \cdot + u_\beta \rho \partial _{x_\beta } \cdot \right) u_\alpha + \partial _{x_\alpha } p&= \partial _{x_\beta } \tau _{\alpha \beta }. \end{aligned}$$
(7)

The convective term \(\frac{1}{2}\left( \partial _{x_\beta } u_\beta \rho \cdot + u_\beta \rho \partial _{x_\beta } \cdot \right) \) becomes a skew symmetric matrix \(D^\mathbf{u}\), if discretized appropriately. By multiplying it by \(u_\alpha ^T\)

$$\begin{aligned} u_\alpha ^T \sqrt{\rho } \partial _t (\sqrt{\rho } u_\alpha ) + u_\alpha ^T D^\mathbf{u} u_\alpha + u_\alpha ^T \partial _{x_\alpha } p&= u_\alpha ^T \partial _{x_\beta } \tau _{\alpha \beta } \end{aligned}$$
(8)

the change of kinetic energy is derived. Skew-symmetry implies \( u_\alpha ^T D^\mathbf{u} u_\alpha = 0 \), thus

$$ \frac{1}{2}\partial _t (\sqrt{\rho } u_\alpha )^2 = - u_\alpha ^T \partial _{x_\alpha } p + u_\alpha ^T \partial _{x_\beta } \tau _{\alpha \beta }. $$

The transport term conserves the kinetic energy; the kinetic energy is changed by pressure work and friction alone, as in the analytical theory, but in contrast to standard schemes. Now, also the unusual appearance of \(\sqrt{\rho }\) instead of \(\rho \) in the momentum equation can be understood. It is the quadratic splitting of the kinetic energy. The terms \(u_\alpha \partial _{x_\alpha } p - u_\alpha \partial _{x_\beta } \tau _{\alpha \beta }\) in Eq. (6) balance the change of kinetic energy by an according change of the internal energy, so that total energy is conserved. This structure carries over to the discrete case. Momentum conservation can be derived in a similar manner.

The method can be easily applied to transformed, structured grids, meaning grids generated by \(C^1\) mappings of the unit cube. The conservation properties are strictly fulfilled as before. The resulting equations are

$$\begin{aligned}&J 2 \sqrt{\rho }\partial _t \sqrt{\rho }+ \partial _{\xi ^\beta } \tilde{u}_\beta \rho = 0 \\&J \sqrt{\rho } \partial _t (\sqrt{\rho } u_\alpha ) u_\alpha +\frac{1}{2}\left( \partial _{\xi ^\beta }\tilde{u}_\beta \rho \cdot + \tilde{u}_\beta \rho \partial _{\xi ^\beta } \cdot \right) u_\alpha + J\partial _{x_\alpha } p = \partial _{\xi _\beta } \tilde{\tau }_{\alpha \beta }\\&J \frac{1}{\gamma -1} \partial _t p + \frac{\gamma }{\gamma -1} \partial _{\xi ^\beta } \left( \tilde{u}_\beta p \right) - J u_\alpha \partial _{x_\alpha } p \\&\qquad =- u_\beta \partial _{\xi ^\alpha } \tilde{\tau }_{\alpha \beta }+\partial _{\xi ^\alpha } u_\beta \tilde{\tau }_{\alpha \beta } + \partial _{\xi ^\alpha } \tilde{\phi }_\alpha . \end{aligned}$$

The effective velocities are defined to include the metric factors \(\tilde{u}_{\gamma _1} = (\mathbf{e}_{\gamma _2}\times \mathbf{e}_{\gamma _3}) \mathbf{u }, \mathrm {\; \gamma _i\; cyclic}.\) The local basis vectors are defined as \(\mathbf{e}_\alpha = \partial _{\xi ^\alpha } \mathbf{r} ,\) with \(r= (x,y,z)^T\). The Jacobian is \(J=(\mathbf{e}_1\times \mathbf{e}_2)\cdot \mathbf{e}_3\).

The discretization is done in a straight forward manner with the variables \((\sqrt{\rho },\sqrt{\rho }u_\alpha , p)\). All derivatives are replaced by skew-symmetric derivative matrices (i.e. symmetric stencils). At boundaries the summation by parts property is assumed for which explicit derivatives constructed by Strand are used [11]. Details on the boundary treatment can be found in [10]. In addition, the use of SBP matrices allows the implementaion of an effevtive multiblock decomposition of the domain.

Time integration

The conserved quantities are (partly) quadratic forms of the discretization variables. Quadratic quantities are in general not conserved. Runge-Kutta schemes conserve quadratic invariants when the coefficients of their Butcher table fulfill the condition

$$\begin{aligned} b_ia_{ij}+b_ja_{ji} = b_ib_j. \end{aligned}$$
(9)

This restrictive requirement is fulfilled by all Gauss-collocation methods, a family of \(s\)-stage implicit RK schemes of order \(2s\). Time integration is done by the two stage, fourth order method:

$$\begin{aligned} \begin{array}{c|cc} \frac{1}{2}-\frac{\sqrt{3}}{6}&{} \frac{1}{4} &{} \frac{1}{4} -\frac{\sqrt{3}}{6}\\ \frac{1}{2}+\frac{\sqrt{3}}{6}&{} \frac{1}{4} +\frac{\sqrt{3}}{6}&{} \frac{1}{4} \\ \hline &{}\frac{1}{2}&{} \frac{1}{2}\end{array} \end{aligned}$$

These methods lead to full conservation, which is discussed in [3]. It is found that a fix point iteration works surprisingly well for moderate \(\varDelta t\). It is further observed, that the conservation converges quicker than one might estimate form the convergence of the full solution.

3 Numerical Examples

In this section we present four numerical examples to show the applicability of our method to physical flow situations containing small scale turbulence and shocks. Therefore we show computations of a classical shock-tube test case, a turbulent boundary layer, a developing Richtmyer-Meshkov instability and an instationary shock-wave/boundary-layer interaction (SBLI). All simulations use the previously described skew-symmetric finite difference scheme. The implementation is in FORTRAN and parallelized using MPI directives. Spatial discretization is done using \(6\)th order central differences with SBP properties. Temporal discretizations is achieved by the implicit \(4\)th order Gauss collocation method with one small exception. Due to the higher computational effort of the implicit scheme, the SBLI simulation is advanced in time until initial transients are gone using an explicit Runge-Kutta scheme of fourth order. Once a statistically steady regime is reached, integration using the fully conservative Gauss-collocation scheme is resumed.

Sod’s test case

The first test case is the classical Sod’s shock-tube problem for the Euler equations. Starting conditions are \(q^l=(1,0,1)\) and \(q^l=(0.125,0,0.1)\) where \(q=(\rho ,u,p)\). The problem is discretized using \(201\) points and Bogeys conservative shockfilter is applied, see [1] for details. Figure 1 shows a comparison between the numerical and analytical solution, displaying agreement of propagation speed with the analytical solution, as expected for a conservative scheme. Only the contact discontinuity shows slightly higher damping than needed. The filter method is independent of the base scheme and can be easily modified to improve this.

Fig. 1
figure 1

Sod’s test case at \(t=0.4\) using the Shock filter of Bogey et al. [1]. Good agreement is found. The Shock speed matches the analytical solution (dotted line)

DNS of a turbulent boundary layer at \(Re \approx 5000\)

To show the validity of the skew-symmetric finite-difference approach to small scale turbulence a direct numerical simulation of a turbulent boundary layer is shown. Reynolds number \(Re_{\delta _{in}}=4736\) and free-stream Mach number \(M=0.8\), where \(\delta _{in}\) is the \(99\) % boundary layer thickness. The computational domain of dimensions \([106\delta _{in} \times 8 \delta _{in} \times 9 \delta _{in}]\) is resolved using roughly \(80\) million grid points. This resolution is chosen so that the grid spacing at the wall satisfies a dimensionless wall distance of \(\varDelta y^+ < 1\). Throughout the domain and the average \(\varDelta y^+\) at the boundary layer edge is not larger than \(7\). The turbulent inlet conditions are enforced using a recycling/rescaling method as introduced by Lund [6], and modified by Pirozzoli [9]. Results are in good agreement with reference computations of Pirozzoli et al. [8]. Figure 2 depicts streamwise velocity in a wall-parallel plane where the formation of characteristic streak structures is visible.

Fig. 2
figure 2

Contours of instantaneous streamwise velocity in a \(xz\)-plane located at \(y^+ \approx 10\)

Fig. 3
figure 3

Contour plot of a 2-dimensional Richtmyer-Meshkov instability; the top half of the domain depicts density while vorticity is shown in the lower half

Fig. 4
figure 4

Top: Snapshot of the transonic flow over a bump. Pressure contours and iso-lines of streamwise velocity behind the bump are displayed. Bottom: Instantaneous streamwise velocity contours in wall-parallel plane at \(y^+ \approx 25\). The current location of the recirculation bubble is marked by the \(u=0\) iso-line

2-Dimensional Richtmyer-Meshkov instability

A Richtmyer-Meshkov instability is an instability mechanism that develops when an interface between fluids is impulsivly accelerated by a passing shockwave. In our simulation the fluid-fluid interface is modeled by a discontinous jump in density. The shock Mach number of the accelerating shockwave is \(M_s = 1.5\). The two-dimensional domain is discretized with \([4096 \times 2048]\) gridpoints and the afore mentioned conservative shock-filter by Bogey et al. is used. Figure 3 shows the mushroom-like growth out of the fluid interface. In the top half of the figure density contours are plotted while the lower half depicts vorticity. Due to the minimal dissipation of the skew-symmetric scheme, many secondary and even tertiary instabilities can be observed. The prime examples being the Kelvin-Helmholtz instabilities that form at the shear-layer between the two fluids. The vorticity plot reveals the complex turbulent flow field in the vicinity of the large scale structure that drives the creation of many of the smaller instabilities.

Shock-wave/boundary-layer Interaction

Shock-wave/boundary-layer interactions can occur in many important engineering applications. A prominent example is transonic flow over an airfoil, as the flow is accelerated over the airfoil, a super-sonic pocket forms that is terminated by a shock. The strong pressure gradient leads to the separation of the boundary-layer behind the shock and a recirculation bubble forms. Under certain conditions the shock can exhibit large scale movements which has disastrous influence on all aerodynamic quantities. For a comprehensive review of the different forms of transsonic SBLI see e.g. [5].

The phenomenon of Shock-wave/boundary-layer interaction was one of the main motivations for the development of the conservative finite-difference scheme, as the simulation has to resolve the small turbulent scales in the boundary layer as well as to handle the shock movements. The simulations shown below are preliminary studies of SBLI occurring due to transonic flow over a bump. A laminar boundary layer is impinging on a small bump, a shock forms over the bump and a recirculation bubble that exhibits small breathing motions forms behind the interaction. Past the interaction zone the boundary layer begins its transition to turbulence. The size of the computational domain is \([65 \times 20 \times 12]\) measured in inlet boundary layer thicknesses \(\delta _{in}\) and is resolved using approximately \(20\) million grid points. The maximum height of the bump is \(1.2\delta _{in}\) while its length is \(21.9\delta _{in}\). Shown below are snapshots of the instantaneous velocity and pressure fields. In Fig. 4 the geometry of the case is visible. The shock is visible both in the pressure fields and the contourlines of the stream-wise velocity. The recirculation bubble in the snapshot can be seen extending up to \(x \approx 0.2\). In the lower panel of the figure the stream-wise velocity in a wall-parallel plane is shown. Again, the position of the shock at \(x=0.05\) and the length of the recirculation bubble can be seen. In addition the transition of the laminar flow field to turbulence through the interaction zone is visible.

4 Conclusions

We presented a fully conservative finite-difference scheme for the compressible Navier-Stokes equations on arbitrarily distorted, structured grids. In addition to its energy preserving nature the scheme introduces no artificial dissipation. The scheme is shown to be applicable to physical situations containing shocks and small scale turbulence while being easy to implement. This makes the skew-symmetric finite difference discretization a worthy alternative to Finite Volume methods in the context of large and small scale simulations of compressible flow.