## 1 Moving vortex solutions and regularity requirements

### 1.1 Shallow water equations and moving profiles

We consider the shallow water equations (SWEs) on a flat bathymetry reading

(1) |

, , .

Following [6] we consider solutions of the form and , with , and constant. Replacing in the SWEs we obtain

(2) |

which justifies looking for stationary solutions with solenoidal velocity fields with depth variations uniquely in the cross-stream direction. These conditions are easily met for solutions with cylindrical symmetry.

### 1.2 SWEs in cylindrical coordinates

We consider cylindrical coordinates defined in 2D by the distance from the origin , and the counter-clockwise angle measured from the positive axis so that

(3) |

We also introduce the direction vectors

, and . This notation can be used to write the shallow water equations in polar coordinates as(4) |

where

(5) |

### 1.3 Stationary vortex ODE

To mimic (2), we consider the particular case with all zero time derivatives and only radial velocity, i.e.,

(6) |

With the above hypotheses we can readily check that the first and the last in (4) are identically satisfied, while the second reduces to

(7) |

Assuming further that we end up with

(8) |

Given a law for the angular velocity this ODE can be integrated to obtain closed form expressions for the depth and, conversely, given a law for , and can be obtained differentiating .

### 1.4 Regularity requirements for validating high order methods

To validate higher order methods, exact solutions of the shallow water system should have enough regularity to allow the validity of high order approximation results. The classical interpolation estimate for finite element approximations

[3, §1.5] for a function with , for a multi-index , is the following(9) |

with the mesh size. This means that to benchmark an order accurate method, we need an exact solution with integrable derivatives. In practice, for a system different variables may have different regularity. This may lead in practice to convergence rates somewhat in between those of the different variables, depending on how the error is defined and measured.

### 1.5 Extension to Euler equations

Similarly to SWEs other moving vortexes can solve exactly Euler equations. They read

(10) |

where the perfect gas equation of state closes the system, i.e.,

(11) |

Here is the adiabatic constant. Equivalently, we can write Euler equations in polar coordinates

(12) |

Using the vortex form (6), we have that is set to 0 and is equal to 0 for all the unknowns. Hence, the system reduces for steady vortexes to

(13) |

This form can be easily solved in two situations.

#### Isentropic case

The isentropic case (constant) for leads to

(14) |

Following the approach of (7), if we define any angular velocity and consequentially

(15) |

where with the integral is meant up to a constant, that can be set with at . Clearly, this formulation is equivalent to the SWE ones setting and , and all the following derivation can be used in Euler equations.

#### Isochoric vortex

The second option to obtain a steady vortex is to set a constant density , and (13) becomes a differential equation for . Again, we obtain

(16) |

## 2 The vortex solution of [6]

The following is an example often used in literature obtained by setting

(17) |

This expression can be fed into (8) and integrated backwards from to with initial condition to obtain

(18) |

with

(19) |

Note that

(20) |

According to (9) this solution should allow to obtain at most second order of accuracy, due to the limited regularity of the velocity. In practice, some computations have shown a little extra convergence for the depth, for which, at least on relatively coarse resolutions, one can manage to obtain toughly third order convergence. The convergence study obtained with a WENO5 on Cartesian grids on with a RK(6,5) is shown in table 1. The tests are run on the vortex defined with and centered in , and such that . It is clear that the order of accuracy for cannot reach 3 and that the velocities can be approximated with only order 2.

N | Error h | Order h | Error u | Order u | Error v | Order v |

8 | 2.755e-04 | 0.000 | 3.072e-03 | 0.000 | 3.072e-03 | 0.000 |

16 | 1.650e-04 | 0.739 | 8.940e-04 | 1.781 | 8.938e-04 | 1.781 |

32 | 3.039e-05 | 2.441 | 1.654e-04 | 2.434 | 1.654e-04 | 2.434 |

64 | 4.188e-06 | 2.859 | 3.568e-05 | 2.213 | 3.568e-05 | 2.213 |

128 | 5.018e-07 | 3.061 | 7.879e-06 | 2.179 | 7.879e-06 | 2.179 |

256 | 5.755e-08 | 3.124 | 1.588e-06 | 2.311 | 1.588e-06 | 2.311 |

512 | 6.320e-09 | 3.187 | 2.970e-07 | 2.418 | 2.970e-07 | 2.418 |

## 3 Non compact supported vortexes

There are many other vortexes for Euler’s equation, Euler himself in [4] suggested a similar simplification to obtain a steady solution, and in 1998 Shu [7] proposed a vortex to study the accuracy of WENO5 schemes from a qualitatively point of view. In the following years, this tests and some modifications of it became a real benchmark for testing the accuracy of many schemes [5, 10, 9, 1, 2]. The main idea follows form the definition of a vortex where the base function is a Gaussian function , where is a rescaling factor for the width and rescales the amplitude. Despite being the benchmark test for many problems, this test does not have a compact support and boundaries are a real issue, in particular when dealing with very high order of accuracy methods, as shown, for instance, in [8]. Nevertheless, it was often used with periodic boundary conditions even with nonzero background speed. This leads to traveling discontinuities (on the derivatives) from the boundaries to all over the domain. The techniques to cure this issue were various starting from enlarging the domain (or equivalently reducing ) to treating with nonperiodic boundary conditions (inflow/outflow with steady vortex). Of course increasing the domain means that the computational costs increase too and using inflow/outflow does not allow to make the vortex travel outside the domain.

We can easily compute

(21) |

On the pictures one finds also the values of the maximum absolute values of the derivatives and the values of speed and height at . As one can see, increasing the derivatives decrease, but the values at are diverging from for and 0 for . This means that boundary effects might disturb the convergence process. For the numerical part, we will test only , as all the other parameters leads to either very high derivatives or boundary effects. This is also visible in these tests, but this is the range where they are more bounded.

## 4 Compact supported traveling vortexes of arbitrary smoothness

### 4.1 Iterative correction of the RB-vortex to obtain arbitrary smoothness

In order to obtain more regularity in the vortex, and to be able to test higher order accuracy methods, we can generalize the previous solution. We remark that for (17) is equivalent to

(22) |

A natural way to improve the regularity of this definition for is to increase the exponent of the cosinus. So we look into definitions of the type

(23) |

which allows to increase the regularity, keeping bounded values of the th derivative.

In practice, we need to integrate the ODE

(24) |

with the condition . The solution to this problem within can be written as

(25) |

having set

(26) |

up to an additional constant. Comparing to (18) we can deduce that

(27) |

with defined in (19). For we can use the iterative integration rule

(28) |

to show that

This formula can be used to compute the exact solution iteratively for any with initial value given by (27). In appendix A, we provide some values of .

These vortexes suited for testing high order methods, as they are . Nevertheless, it is not recommended to use a very high for not so high order methods. Indeed, we see that the estimation on the error (9) depends not only on the smoothness of the solution, but also on the seminorms. Essentially, if the derivatives are too large, we might need very fine meshes to reach the expected order of accuracy. To assess this information we plot for various vortexes the profile of and of and their derivatives (up to the 5th derivative). We fix for all the vortexes , the values and , by setting and . In figs. 4 and 3 the plot related to the vortexes of type (25) for variables and respectively.

In fig. 3 we barely see that the fifth derivative of the case is not zero at , but we observe that the amplitude of the derivative functions increases with , in particular the fifth derivative of is 10 times larger than . In fig. 4 we immediately see that the second derivative of for is discontinuous in , and the fourth derivative is discontinuous also for . Again, the higher we choose the larger the derivatives become.

### 4.2 A few examples

In this case we start from (8) and we reverse it to obtain a definition of the angular velocity given the depth:

(29) |

To avoid the singularity in , we define the depth as a function of . An example of compactly supported function is obtained with the definition

(30) |

The angular velocity, and thus the tangential linear velocity, can be readily computed from (29):

(31) |

Though being , the previous function has very large derivatives and need very fine mesh to see the order of the mesh.

Alternatives could be obtained, for instance, using higher power in the exponential, for example

(32) |

leading to

(33) |

Or one can make the derivatives a bit smaller with an additional function, i.e.,

(34) |

leading to

(35) |

As for the previous examples, though being all these vortexes suited for testing high order methods, as they are , the amplitude of their derivatives changes considerably. To assess this information we plot for various vortexes the profile of and of and their derivatives (up to the 5th derivative). We fix for all the vortexes , the values and , by setting and . In figs. 6 and 5 we plot the vortexes of type (32) for variables and respectively, while in figs. 8 and 7 we plot the vortexes for (34).

With the vortexes (32) and (34), the profile of grows to more slowly, see fig. 5, but the high derivatives are larger with respect to the ones of the previous examples, but they do not vary much with respect to the parameter . Also for we observe similar behaviors: comparing the 5th derivatives of these vortexes with the previous ones, we have values at least 100 times larger. With the test cases we actually can slightly decrease the amplitude of high derivatives for large , as shown in fig. 8.

## 5 Numerical tests

We test a 5th order method with the presented vortexes. The method consists of a finite volume discretization on a Cartesian grid with WENO5 reconstruction and Rusanov numerical flux. We use 4 Gauss-Legendre points for one-dimensional quadrature rules. The time discretization is carried out with Butcher’s RK(6,5) 6 stages 5th order method, see appendix B for its Butcher’s tableau. The CFL number used is 0.95. The domain is and it is discretized with uniform Cartesian grids and periodic boundary conditions. The vortexes are set with , and , while for the non compact supported one we test different parameters. Final time is set to , but it might be useful to run the code for larger or smaller times. In [8] it is well observed how this impact on the convergence of the method as the machine precision error accumulates exponentially in time, one might see its effect before reaching the desired accuracy. On the other side, small final time leads to very small errors also for coarser meshes, not letting appreciate the quality of the high order schemes.

With the non compact supported vortex we obtain the results in table 2. We observe for large values of that the error from the boundary effect is predominant already for very coarse meshes. For (corresponding to in figs. 2 and 1) we have a discontinuity of the order of for the velocity variables on the boundary of the domain (periodic BCs) and this prevent reaching more than 3rd order in the coarse regime. For we see again boundary effects but for finer meshes, hence it is possible to reach an order of accuracy 4 for few steps in the mesh refinement process. On the other side, we have for (corresponding to in figs. 2 and 1) that at the boundaries is up to machine precision and . Indeed, the convergence in this test is smooth enough for , even for not too fine meshes. Nevertheless, one should really be careful using this vortex in hitting machine precision at the boundaries.

For the tests run with the vortexes (25), we observe that for we reach order 3 for and around for , a little better than expected, for the order reaches 4 and almost 5 for , and finally for we essentially obtain the expected 5th order of the scheme already at the mesh .

For the cases we observe that a finer mesh is needed to reach the expected accuracy, in particular for the (32) tests, where we barely reach it for with the mesh with . We observe in this case that we obtain better convergence orders for smaller times, e.g. .

In the vortex (34) we have smaller amplitude of higher derivatives, in particular for large , so with we see an order of accuracy larger than 4 for , which is a bit better than with the only exponential test, still with a quite fine mesh. The same reasoning holds for these tests and with smaller final times we can observe better convergence order (around 4.8 for ).

## 6 Conclusion

Steady and moving vortex solutions are useful tools to test the order of accuracy of high order methods for hyperbolic balance laws (shallow water and Euler equations). The vortexes known in literature are, anyway, either discontinuous in some derivatives [6], hence not suitable for very high order methods, or non compact supported [7], hence presenting troubles with boundary conditions if the parameters are not carefully chosen.

In this work we propose a class of compactly supported vortexes with arbitrary , and some compactly supported vortexes. The latter are very attractive as they do not need to compute integrals, but only derivatives, and have all the derivatives continuous. On the other side, their derivatives are particularly large and the expected order of accuracy is reached only for very fine meshes. The one that obtain better results in this class is the one based on the with for final time . For larger times the order is not so neat.

Among the based vortexes, the one with gives better results (for order 5 schemes) even for coarser meshes , as its derivative are not too large. On the other side, this vortex can only be used to test methods up to order 6 of accuracy.

Overall, we suggest the use of vortexes for testing arbitrarily high order methods, while, for a fixed method of order the recipe (25) builds a vortex where the order of accuracy can be observed in coarser meshes.

## Acknowledgments

D.T. acknowledges Wasilij Barsukow for a fruitful discussion on vortexes and their origin.

## Appendix A Values of

Here, we provide the explicit form of for , the corresponding can be computed from (25). The value of can be set given , using

(36) |

We provide in the following also the value of .

## Appendix B Runge Kutta (6,5)

The Butcher Tableau of Butcher’s Runge Kutta (6,5) method used is the following

(37) |

## References

- [1] (2019) High-order residual distribution scheme for the time-dependent Euler equations of fluid dynamics. Computers & Mathematics with Applications 78 (2), pp. 274–297. Cited by: §3.
- [2] (2020) High order asymptotic preserving deferred correction implicit-explicit schemes for kinetic models. SIAM Journal on Scientific Computing 42 (3), pp. B816–B845. Cited by: §3.
- [3] (2013) Theory and practice of finite elements. Vol. 159, Springer Science & Business Media. Cited by: §1.4.
- [4] (1755) Principes généraux du mouvement des fluides. Académie Royale des Sciences et des Belles Lettres de Berlin Mémoires (11), pp. 274–315. Cited by: §3.
- [5] (2007) Nodal discontinuous galerkin methods: algorithms, analysis, and applications. Springer Science & Business Media. Cited by: §3.
- [6] (2009) Stabilized residual distribution for shallow water simulations. Journal of Computational Physics 228 (4), pp. 1071–1115. Cited by: §1.1, §2, §6.
- [7] (1998) Essentially non-oscillatory and weighted essentially non-oscillatory schemes for hyperbolic conservation laws. In Advanced numerical approximation of nonlinear hyperbolic equations, pp. 325–432. Cited by: §3, §6.
- [8] (2015) A survey of the isentropic Euler vortex problem using high-order methods. In 22nd AIAA Computational Fluid Dynamics Conference, pp. 2444. Cited by: §3, §5.
- [9] (2009) A unifying lifting collocation penalty formulation including the discontinuous galerkin, spectral volume/difference methods for conservation laws on mixed grids. Journal of Computational Physics 228 (21), pp. 8161–8186. Cited by: §3.
- [10] (2007) Spectral difference method for unstructured grids ii: extension to the Euler equations. Journal of Scientific Computing 32 (1), pp. 45–71. Cited by: §3.

Comments

There are no comments yet.