1. Introduction
Smoothed particle hydrodynamics (SPH) method is a mesh free, particle based, Lagrangian computational method that was introduced simultaneously by Lucy [
1] and Gingold and Monaghan [
2] for solving astrophysics problems. Following its introduction to hydrodynamics studies by Monaghan [
3], the SPH method has become a fast growing computational fluid dynamics (CFD) approach. The initial SPH formulation employed a weakly compressible velocity–pressure coupling scheme, in which the pressure field is numerically computed from the density variation through an equation of state. Although this explicit Weakly Compressible SPH (WCSPH) scheme has clear advantages in tackling various types of violent free-surface hydrodynamics problems, which have large and non-linear deformations [
4,
5,
6], it always requires additional numerical treatments to prevent the occurrence of noisy and oscillatory pressure fields [
4,
7,
8].
Therefore, for dealing with incompressible fluid flow accurately, a fully incompressible SPH (ISPH) approach [
9,
10] is proposed through being inspired from the algorithm originally developed for a mesh based method [
11]. In ISPH, the velocity-pressure coupling scheme is based on the projection method, wherein a computationally expensive implicit solution of pressure Poisson equation is required [
12]. Many challenging incompressible fluid mechanics problems were successfully simulated with the conventional ISPH method, including free surface flows [
13,
14], multiphase flows [
15,
16], electrohydrodynamics [
17,
18], among others. The ISPH methodology has also been implemented with hybrid Lagrangian–Eulerian discretization approaches [
19] and Eulerian SPH [
20] in order to achieve a more consistent and stable numerical framework for the SPH method in general [
21]. Moreover, in order to reduce the computational costs, explicit incompressible SPH formulations are also present in the literature [
22,
23,
24], which introduce simplifying assumptions for solving the pressure Poisson equation in an explicit fashion. Augmented Lagrangian SPH (ALSPH) is the most recent and novel explicit incompressible SPH method that has been recently introduced and further improved by the authors [
25,
26].
In general framework, Augmented Lagrangian method is an optimization method [
27], which utilizes Lagrange multipliers, together with penalty functions, in order to minimize (or maximize) an objective function. With this combination, constrained optimization problems are solved as unconstrained sets of equations in a manner that the penalty terms are modified at each iteration with respect to the Lagrangian multipliers defined for the mathematical model. Inspired from this mathematical optimization perspective, the ALSPH method utilizes suitable augmented Lagrangian penalty terms on the pressure and velocity fields decoupled by the projection principle [
11] and it performs iterations to minimize velocity divergence without solving implicit Poisson equation for pressure.
Fortin and Glowinski pioneered the idea of solving Navier–Stokes equations as an optimization problem with the help of the Augmented Lagrangian method [
28]. Fortin and Glowinski [
28] introduced augmented Lagrangian algorithms for solving Navier–Stokes equations and other engineering problems. Followingly, Desai and Ito [
29] applied the method for optimal control problems that are governed by steady state Navier-Stokes equations. The method is employed on solving 2D lid-driven cavity and channel flow with sudden expansion problems utilizing a grid based discretization approach. Again, with a grid based approach, Vincent and Caltagirone [
30] solved 2D and 3D unsteady fluid flow problems with an incompressible projective augmented Lagrangian application. Vincent et al. [
31] applied an adaptive augmented Lagrangian method on 3D direct numerical simulation (DNS) with a multiphase, volume of fluid (VOF) framework, where the augmented Lagrangian is implemented in the predictor step of the projection approach. The adaptivity is provided by evaluating the augmented Lagrangian penalty term locally over a conditional penalty coefficient that is based on the dominant flow characteristics. There are also meshless applications of the approach in solid mechanics field for the solution of material and crack discontinuity problems [
32] and on elastic solids [
33] to enforce boundary conditions.
To this end, the ALSPH method is the first meshless implementation of the augmented Lagrangian approach to the solution of the Navier–Stokes equations. The augmented Lagrangian penalty term in the ALSPH method is designed to mimic the bulk viscosity term of the Navier–Stokes equations, which should normally be equal to zero for an incompressible flow problem. In this regard, the ALSPH method tries to ensure that this term be zero through its iterative scheme. The penalty term is modified (or augmented) at each iteration while the bulk viscosity term diminishes. Fatehi et al. [
25] performed simulations with the ALSPH method on 2D flow over the backward facing step and 2D pressure jump problems, when comparing the results with the weakly compressible SPH (WCSPH) method. In our recent study [
26], along with algorithm enhancements and a simple adaptive scheme for the penalty term estimation, we have further investigated the performance of the ALSPH method through solving a challenging incompressible flow problem, namely, 2D flow past a circular cylinder under low to moderate Reynolds numbers. The authors [
25,
26] demonstrated the advantage of ALSPH over WCSPH in terms of rendering smoother pressure fields and smaller velocity divergences at the expense of a larger computational cost. The findings of our study [
26] have further indicated the accuracy of the ALSPH method, especially in higher Reynolds numbers, as compared to the WCSPH method at same particle resolutions and time step sizes. In our previous study [
26], the effects of the time step size or the maximum number of iterations per time step were not investigated. When considering higher particle resolution requirements of the WCSPH method at higher Reynolds numbers [
34,
35,
36], our results have also pointed out the advantage of the ALSPH method over WCSPH in terms of computational costs, even without optimizing these temporal and iterative discretization parameters [
26].
Given the fact that the ALSPH is a relatively new approach to enforcing the incompressibility condition in particle based simulations, it is important to scrutinize its all aspects to be able to make it a versatile pressure-velocity coupling algorithm. To this end, it is essential to understand the effect of various parameters (i.e., time step, number of iterations and locations of derivative operations) on the accuracy of the ALSPH results. Hence, the main focus of the current study is to determine the optimum time step size, and a practical iteration procedure for the ALSPH method, which involves the number of inner iteration for each time step and the identification of the most effective particle location for computing spatial derivatives during each inner iteration. With
n representing temporal discretization in the scheme, the first approach computes the spatial derivatives at
by utilizing the displaced particle position results of the previous iteration [
25]. In the second approach, the derivatives are always computed with respect to the initial particle positions at
n [
26]. The velocity and pressure values are approximated with the same SPH procedures in both of the schemes.
Simulations are performed on the benchmark problem of 2D incompressible flow past a circular cylinder using the in-house C++ code in order to examine the numerical performances of both ALSPH schemes and to obtain the optimum time step and number of inner iteration values. The results are compared in terms of the dynamic properties (force and pressure coefficients), the wake kinematics (Strouhal number analysis), and the velocity divergence as a measure of error in enforcing incompressibility condition in the flow domain. Initially, a series of simulations employing the two derivative estimation schemes are performed to determine an optimum dimensionless time step size by limiting the maximum number of iterations per time step to five. Subsequently, utilizing the best applicable dimensionless time step size, the schemes are tested for the iteration number of two, five, and twenty. Finally, the two schemes are examined under Reynolds numbers varying from 100 to 300 utilizing the optimum combination of the aforementioned parameters. Ultimately, the novelty of this paper lies in the detailed and systematic investigations of the above stated parameters, so that the ALSPH method can be reliably used to model incompressible flow problems. The key findings of this research are elaborated within the numerical results section and concisely stated in the conclusion.
3. Problem Definition
In this study, 2D incompressible channel flow past circular cylinder is simulated to determine the best possible ALSPH parameters in terms of accuracy and computational costs. Channel geometry is given in
Figure 1, where
D is the cylinder diameter and
,
, and
.
Reynolds number is defined as
with uniform inlet velocity
U. The initial particle discretization is realized by uniform orthogonal fluid particles with equal particle distances of
in both
x and
y axes. Channel walls are represented by ghost fluid particles with a free-slip boundary condition, as illustrated in
Figure 2 [
26]. Two buffer zones with lengths of 6 h are defined along the inlet and outlet regions to ensure mass conservation within the channel (
Figure 1). Particles of the inlet buffer zone enters into the flow domain with the constant velocity
U. Fluid particles reaching the outlet buffer zone are enforced to preserve the normal component of their velocity to the boundary until they travel beyond 6 h thick outlet buffer zone. Fixed solid cylinder particles are radially distributed with respect to the same
scale. An additional pressure term is imposed upon the cylinder particles in order to ensure no-slip and Neumann boundary conditions for flow around the solid obstacle;
where
is a pseudo-velocity for the solid particles computed using Equation (
8),
is the outwards facing surface normal,
is the modified pressure,
and
is the pseudo-displacement along the normal direction.
The instantaneous values of drag coefficient
and lift coefficient
for the cylinder are computed by integrating the forces acting on the solid particles of the cylinder as
, where
and
is the number of cylinder particles. Similarly, the pressure coefficient is computed over the cylinder surface as
, where
is the angular coordinate with respect to the center of the cylinder (
Figure 1) and
is the instantaneous mean inlet pressure. Because the flow is oscillatory, the mean values of the drag and pressure coefficients as well as the root mean square of lift coefficient, respectively,
,
, and
are computed over the averaging period
T in accordance with the following relations;
The mean velocity divergence in the domain is computed as , where is the total number of fluid particles.
4. Numerical Results
There are three main investigations in the present study. The first one is the comparison of the spatial derivative Algorithms 1 and 2. To this end, all other investigations are realized for both Algorithms 1 and 2. Two different particle resolutions, namely, and are utilized for all relevant simulations in order to understand the effect of spatial resolution on the numerical results. The second one is to determine the maximum applicable time step size, written in a dimensionless form as . Accordingly, time step size is incrementally tested. Finally, after determining an optimum dimensionless time step size for the problem at hand with five iterations per time step, the effect of the number of iterations on the accuracy of the results are examined by utilizing the iteration number of two and 20 per time step. All three investigations to find the optimum parameters are realized at . Ultimately, having determined the best performing time step size and the number of iterations, both 1 and 2 algorithms are tested under with to examine how these parameters respond to the Reynolds number of the flow. It should be emphasized that the algorithms are equivalent in terms of computational cost. In the figures of the following subsections, the results of Algorithms 1 and 2 will be designated as (1) and (2), respectively.
4.1. Time Step Size
The mean force coefficients and vortex shedding characteristics are investigated and presented in
Figure 3 and
Figure 4, respectively, in order to capture both dynamics and kinematics of the problem. It must be restated that the simulations in this subsection are always performed with a maximum of five iterations per time step.
Figure 3 shows the values of mean drag and lift coefficients varying with the dimensionless time step sizes (
). Algorithms 1 and 2 are in tune with each other, as it can be seen from both
and
results. As for the kinematics, periodic vortex shedding characteristics are compared over Strouhal number "
” versus dimensionless time step size in
Figure 4, where
, with
f being vortex shedding frequency in Hz. Similarly, Algorithms 1 and 2 yield coherent results in this aspect. The noticeable difference between the force coefficient values for
and
indicates that
cannot provide a sufficient particle resolution. Yet, it can be inferred from
Figure 5 that the mean velocity divergence, hence the continuity error, is comparable for these two particle resolutions.
Figure 5 also indicates that increasing the time step sizes results in a better achievement of overall incompressibility in the domain. This is due to the fact that, since the time step size is a term in the penalty coefficient as
, the larger the time step size, the larger is the penalty coefficient, which affects the iterative guesses of the intermediate velocity field
and the pressure field
through Equations (
8) and (
10), respectively. Consequently, the penalty coefficient naturally influences the convergence characteristics of the iterative process. It should be stated that for simulations with five iterations per time step, the utilization of the time step beyond the maximum value that is represented in
Figure 5 yields diverging simulations for both particle resolutions and both algorithms. Algorithms 1 and 2 show generally similar trend with increasing time step sizes. However, Algorithm 1 performs slightly better than Algorithm 2 in larger time step sizes.
It should also be noted that the simulations in our previous study [
26] were performed with a lower dimensionless time step size as
, which corresponds to the lower ends on the
x axes of
Figure 3,
Figure 4 and
Figure 5. Therefore, it is reasonable to conclude that the algorithm distinction does not noticeably affect the results of the previous study [
26] due to the unoptimized time step sizes.
For the sake of completeness, in
Table 1, the results of two algorithms are compared with the 2D numerical findings of the literature in terms of mean drag and root mean square of lift coefficient as well as the Strouhal number for
, where the simulations are performed with
and
.
At inner iterations, Algorithm 1 updates the particle positions by computing the derivative terms on previously predicted particle positions, whereas Algorithm 2 calculates the derivatives at initial particle positions with the updated field function values of
and
p, as explained in
Section 2.4. The effect of derivative locations on the accuracy is negligibly small because both schemes compute the new positions of particle for the inner iteration using Equation (
12) based on
.
4.2. Number of Iterations
In the previous subsection, it was concluded that the best performing dimensionless time step size is the largest applicable one for the simulations with five iterations per time step. Thus, the effect of the maximum iteration number on the results is investigated, utilizing this dimensionless time step value, namely for the forthcoming simulations.
The same analysis pattern as the previous
Section 4.2 is adopted in
Figure 6,
Figure 7 and
Figure 8, investigating, respectively, force coefficients, Strouhal number, and the mean velocity divergence against the number of iterations per time step.
Figure 6 and
Figure 7 do not indicate any clear distinction between the two algorithms both in terms of force coefficients and Strouhal numbers with an increasing number of iterations. In
Figure 8 a decreasing trend of mean continuity error is observed with an increasing number of iterations per time step for both resolutions.
In
Figure 9, spatial variations of the velocity divergence and the magnitude of vorticity at similar lift extremities (around
for each case) are given for
. Despite the almost identical results of vorticities for Algorithms 1 and 2, there are distinguishable differences for velocity divergences as the mean values that are depicted in
Figure 8 suggest. Notwithstanding the fact that twenty iterations per time step yields the best results for both algorithms in general, five iterations per time step is an expedient choice, given the trade off between admissible accuracy and computational cost.
In
Figure 10, pressure coefficients for Algorithms 1 and 2 with two, five, and 20 iterations are compared over the simulations with
. The results of
for the Algorithm 1 are unaffected by the number of iterations per time step, yielding overlapping mean pressure coefficients along the cylinder surface. Additionally, the differences between the results of Algorithms 1 and 2 are trivial for a kind of flow characteristic, which is fairly unsteady. It can be noticed that the mean drag and lift coefficient results of resolution
in
Figure 6 also support the findings of pressure coefficients, since they both demonstrate almost insensitive responses to the number of iterations per time step for Algorithm 1. The finite volume method results of Rajani et al. [
42] and experimental results of Thom [
43] are also included in this comparison to present supplementary information.
4.3. Reynolds Number
Following a thorough investigation of flow characteristics at , the two algorithms are compared at Reynolds numbers that range from 100 to 300. All of the simulations are performed utilizing with a maximum of five iterations per time step, except for the cases, which produce unstable simulations. Thus, for only at cases, time step sizes are reduced to .
In
Figure 11, the mean drag and lift coefficients against Reynolds numbers are presented. It can be observed that both
and
series are almost identical. Higher particle resolutions are required with increasing Reynolds numbers, which can be inferred through comparing the results of the current study with that of Zhang et al. based on the finite difference approach [
41]. Moreover, the Strouhal number results of the two algorithms at different Reynolds numbers are compared in
Figure 12. Correspondingly to the results of force coefficients (
Figure 11), the Strouhal number results of Algorithms 1 and 2 match with each other. The mean velocity divergences of the flow fields display similar behaviour with the overall outlook of the results that were classified in the previous subsection.
Figure 13 shows that Algorithm 1 produces slightly lower mean velocity divergence in the flow domain at all Reynolds numbers covered.
5. Conclusions
The aim of the current study is to investigate in detail the effect of time step size, number of inner iterations, and two different algorithms as to the calculation of spatial derivatives on the robustness, accuracy, and computational cost of the augmented Lagrangian SPH method. To be clear, Algorithm 1 utilizes the particle positions of the previous iteration to compute gradients and divergences of pressure and velocity fields, whereas Algorithm 2 employs the initial particle positions of the time step for these computations. As for the time step, a smaller numerical error is observed at larger time step sizes for both algorithms, which is associated with fact that the time step size is embedded in the penalty coefficient , which augments the prediction of the optimum pressure and velocity fields at each iteration. The largest applicable and best performing dimensionless time step size is found to be around for . The further increase in the dimensionless time step size leads to instability and divergence in both of the algorithms, hence blowing up the simulation. The findings of the present study indicate that the dimensionless time step size that is utilized in our previous study based on the Algorithm 2 is in a safe range, such that it does not produce any difference from the Algorithm 1. It is observed that increasing the number of inner iterations improves the accuracy of simulations for both algorithms, as expected. Nevertheless, the accuracy that is gained by increasing the maximum number of iterations from five to twenty is not notably high to justify the additional computational cost.
Finally, the most efficient combination of the dimensionless time step size and the maximum number of iterations per time step, which are and five iterations respectively, are tested at to 300. Algorithms 1 and 2 yield overlapping results in terms of both force coefficients acting on the cylinder and periodic vortex shedding characteristics of the downstream. Overall, the results of the two algorithms do not meaningfully differ in terms of the dynamics and kinematics of the flow. However, Algorithm 1 can be deemed to be better, since it produces slightly smaller computational error at larger time step sizes.
Although in this study, the ALSPH method is extensively tested against time step size, the number of iterations, and locations of derivative operations for incompressible laminar flow, it is expedient to test it further for challenging free surface and turbulent flow problems, which will form the future direction of the current study.