Next Article in Journal
Investigation of Non-Linear Rheological Characteristics of Barite-Free Drilling Fluids
Next Article in Special Issue
Analysis of the Shear-Thinning Viscosity Behavior of the Johnson–Segalman Viscoelastic Fluids
Previous Article in Journal
Numerical Simulation and Linearized Theory of Vortex Waves in a Viscoelastic, Polymeric Fluid
Previous Article in Special Issue
2D Hydrodynamics of a Plate: From Creeping Flow to Transient Vortex Regimes
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Three-Dimensional Central Moment Lattice Boltzmann Method on a Cuboid Lattice for Anisotropic and Inhomogeneous Flows

Department of Mechanical Engineering, College of Engineering, Design and Computing, University of Colorado Denver, 1200 Larimer Street, Denver, CO 80217, USA
*
Author to whom correspondence should be addressed.
Fluids 2021, 6(9), 326; https://doi.org/10.3390/fluids6090326
Submission received: 19 July 2021 / Revised: 29 August 2021 / Accepted: 3 September 2021 / Published: 10 September 2021
(This article belongs to the Special Issue Complex Fluids and Flows: Algorithms and Applications)

Abstract

:
Lattice Boltzmann (LB) methods are usually developed on cubic lattices that discretize the configuration space using uniform grids. For efficient computations of anisotropic and inhomogeneous flows, it would be beneficial to develop LB algorithms involving the collision-and-stream steps based on orthorhombic cuboid lattices. We present a new 3D central moment LB scheme based on a cuboid D3Q27 lattice. This scheme involves two free parameters representing the ratios of the characteristic particle speeds along the two directions with respect to those in the remaining direction, and these parameters are referred to as the grid aspect ratios. Unlike the existing LB schemes for cuboid lattices, which are based on orthogonalized raw moments, we construct the collision step based on the relaxation of central moments and avoid the orthogonalization of moment basis, which leads to a more robust formulation. Moreover, prior cuboid LB algorithms prescribe the mappings between the distribution functions and raw moments before and after collision by using a moment basis designed to separate the trace of the second order moments (related to bulk viscosity) from its other components (related to shear viscosity), which lead to cumbersome relations for the transformations. By contrast, in our approach, the bulk and shear viscosity effects associated with the viscous stress tensor are naturally segregated only within the collision step and not for such mappings, while the grid aspect ratios are introduced via simpler pre- and post-collision diagonal scaling matrices in the above mappings. These lead to a compact approach, which can be interpreted based on special matrices. It also results in a modular 3D LB scheme on the cuboid lattice, which allows the existing cubic lattice implementations to be readily extended to those based on the more general cuboid lattices. To maintain the isotropy of the viscous stress tensor of the 3D Navier–Stokes equations using the cuboid lattice, corrections for eliminating the truncation errors resulting from the grid anisotropy as well as those from the aliasing effects are derived using a Chapman–Enskog analysis. Such local corrections, which involve the diagonal components of the velocity gradient tensor and are parameterized by two grid aspect ratios, augment the second order moment equilibria in the collision step. We present a numerical study validating the accuracy of our approach for various benchmark problems at different grid aspect ratios. In addition, we show that our 3D cuboid central moment LB method is numerically more robust than its corresponding raw moment formulation. Finally, we demonstrate the effectiveness of the 3D cuboid central moment LB scheme for the simulations of anisotropic and inhomogeneous flows and show significant savings in memory storage and computational cost when used in lieu of that based on the cubic lattice.

1. Introduction

The lattice Boltzmann (LB) methods, which arise as minimally discretized numerical schemes of the Boltzmann transport equation—a cornerstone formulation in kinetic theory, have attracted much attention in recent decades [1,2,3,4,5]. As a mesoscopic approach, these methods have enriched the variety of computational fluid dynamics (CFD) techniques that are being developed and has been applied to a wide range of fluid flows successfully [6,7,8,9]. This involves the evolution of the distribution of the particle populations by a collision step, which is then followed by lock-step advection along discrete directions—referred to as the streaming step.
The former is often modeled by a relaxation of the distributions (e.g., [10]) or their moments (e.g., [11]) to equilibria. The discrete particle velocity directions are referred to as the lattice, which are usually designed to obey the associated physical symmetry and isotropy of the fluid flow being simulated. The lattice is usually referred to by the notation D d Q q , where d represents the number of spatial dimensions and q denotes the number of discrete particle directions.
The macroscopic fields, such as the fluid velocity, are obtained from the lower order moments of the distribution functions, while the higher order kinetic moments can be constructed to evolve so as to facilitate the numerical robustness of the method. The linear advection and locally nonlinear collision of the LB method, along with its ability to naturally represent the physics of complex fluids and flows based on kinetic models, are among the important assets of this approach.
Anisotropic and inhomogeneous fluid motions involve relatively large spatial variations in the characteristic features of the fluid flow in one or more directions when compared with in the other directions. These include shear flows, flows around boundary layers, and in compacted geometrically disordered media, where the characteristic length scales or spatial gradients in the flow are dominant in certain directions relative to others. Such multidimensional flows governed by the Navier–Stokes equations can be more efficiently computed using methods that use grids that naturally conform with the direction-specific non-homogeneities inherent to the problem of interest.
The LB methods, on the other hand, are usually constructed using uniform lattice grids, such as using a square lattice in two-dimensions (2D) and a cubic lattice in three-dimensions (3D) in order to satisfy their symmetry and isotropy requirements. One approach to overcome this issue is to employ nonuniform grids with the LB method augmented using interpolations (e.g., [12,13]), which, however, introduce considerable additional numerical dissipation compromising the accuracy of the approach [14].
Alternatively, conventional discretizations, such as finite difference, finite volume, or finite element approaches (e.g., [15,16]) could be used, which, however, entail additional complexity and overhead to the LB schemes. It is, thus, desirable to use the standard LB discretization along the particle characteristics that preserve the lock-step or perfect streaming with relatively low attendant numerical dissipation while allowing the use of different particle speeds along different directions. Such types of LB schemes are associated with the use of rectangular lattice grids in 2D and cuboid lattice grids in 3D.
Starting from the initial work of Koelman [17] much focus has been given to the construction of the LB methods on rectangular grids during the last two decades using different collision models with some necessary modifications to the algorithm to satisfy the Navier–Stokes (NS) equations. In the simpler rectangular LB versions, the single-relaxation-time (SRT) model has been modified by including additional particle velocities and whose equilibria were constructed via solving a quadrature problem [18], by extending the equilibrium distribution functions with additional corrections to restore the isotropy effects [19], or by including some counteracting forcing terms [20].
On the other hand, by exploiting the additional degrees of freedom existing in the multiple-relaxation-time (MRT) collision model based on raw moments, rectangular LB schemes were constructed in the following four different ways: (i) by coupling between various relaxation parameters and the grid aspect ratio via a linear stability analysis [21], (ii) by keeping the matrix of the transformation between the moment space and the velocity space of the distribution functions independent of the grid aspect ratio [22], (iii) by using an additional adjustable parameter that determines the relative orientation in the energy-normal stress subspace via an inverse design analysis based on the Chapman–Enskog expansion [23], and (iv) by extending the equilibrium moments to include the stress components for restoring the isotropy of the recovered macroscopic equations [19].
Zong et al. [23] demonstrated that the emergent continuum limit equations of some of the earlier rectangular LB formulations [17,21,22] were not fully consistent with the NS equations. Moreover, although the latter rectangular LB schemes [19,23] yielded physically correct formulations, they require cumbersome implementations involving the specification of many free parameters and complicated expressions for the transport coefficients and mapping matrices dependent on the grid aspect ratio, and, like the other consistent schemes [18,20], are subject to major stability issues at lower grid aspect ratios when simulating flows at relatively large characteristic flow velocities or low viscosities.
The rationale for the limitations of the prior rectangular LB schemes were clarified in our recent work [24,25,26]. These include their choice of the orthogonal moment basis, construction of the discrete equilibria involving only the lower order velocity terms and without correcting for the non-Galilean invariant cubic velocity errors arising from aliasing effects, and the use of collision models based on raw moments. Moreover, it was indicated in an earlier work for standard lattices (square or cubic) [27,28] that the use of central moments and avoiding the orthogonalization of the moment basis leads to significant stability improvements.
The construction of the collision step in the LB formulations using central moments based on the peculiar velocity [29,30] naturally maintains the Galilean invariance of the moments independently supported by the lattice and its advantages have been demonstrated for a variety of fluid dynamical problems (see e.g., [31,32,33,34,35,36]). Based on these considerations, we proposed a 2D central moment rectangular LB scheme recently and demonstrated its superior numerical features for simulating flows at higher Reynolds numbers using relatively small grid aspect ratio when compared to the other existing LB methods based on the rectangular lattice [24,25,26].
Since anisotropic and inhomogeneous flows in situations of practical interest are often 3D in nature, it would be beneficial to develop LB algorithms on cuboid lattices. There exist few prior studies in this regard. For example, Hegele et al. [18] presented a SRT-LB scheme using a D3Q23 lattice that involves the use of two additional particle velocities in each of the two Cartesian directions embedded to the D3Q19 lattice and constructed the equilibrium distribution functions by solving a quadrature problem to ensure the desired isotropy.
They evaluated the accuracy of the resulting approach for simulating cylindrical waves by using grid sizes with only small deviations from the cubic lattice. Later, Jiang and Zhang [37] presented a cuboid LB scheme using a D3Q19 lattice for simulations of porous media. However, due to severe numerical stability restrictions, it was able to use grid aspect ratios with minor variations from unity. More recently, Wang et al. [38] presented a raw moment-based MRT-LB scheme on the D3Q19 cuboid lattice, which utilized an orthogonal moment basis.
The equilibria and the transport coefficients were constructed via an inverse design analysis to satisfy the Navier–Stokes equations and involved the specification of many free parameters entailing a cumbersome implementation of the method. The resulting numerical approach was validated for some benchmark flow problems at moderate grid aspect ratios. Here, it should be pointed out that the choice of the equilibria plays a crucial role in maintaining the physical isotropy of the fluid flow equations [39]. This can be naturally constructed by matching with the continuous Maxwell distribution as done in central moment LB formulations rather than involving complicated fitting of parameters.
Moreover, as mentioned above, the use of central moments is expected to provide significant improvements to the state-of-the-art in LBM based on non-cubic grids. However, a 3D central moment LBM based on a cuboid lattice does not currently exist in the literature, which can be constructed via an extension and significant modification of our recent work on the rectangular lattice [26] and is the main objective of this present paper.
In this study, we present a new 3D cuboid central moment LB method on a D3Q27 lattice. This is referred to as the 3DCCM-LBM in what follows, and is parameterized by two grid aspect ratios representing the ratios of the characteristic particle speeds along the two directions with respect to those in the remaining direction. The D3Q27 lattice is chosen since it provides greater possible isotropy and accuracy when compared to its D3Q15 and D3Q19 lattice subsets [40]; however, the equilibria corrections needed for the D3Q27 cuboid lattice to satisfy the NS equations (see below for more details) are applicable for these lattice subsets as well.
In contrast to the prior approaches, our cuboid LB scheme will be constructed by using a natural moment basis that avoids orthogonalization, and the discrete central moment equilibria are specified by matching with those corresponding to the continuous Maxwell distribution function. Moreover, the prior LB algorithms on stretched lattice grids based on the various collision models discussed above, including our recent 2D rectangular central moment LB scheme [26], prescribe the transformations between the distribution functions and raw moments before and after collision by using a moment basis that separates the trace of the second order moments (related to the bulk viscosity) from its other components (related to shear viscosity).
The use of this strategy in the context of the 3D formulations based on the cuboid lattice would result in quite complicated transformation matrices dependent on the grid aspect ratios. This is obviated in our present approach by naturally separating the bulk and shear viscosity effects associated with the viscous stress only within the collision step and not for such transformations, and the effect of the grid aspect ratios are introduced via much simpler pre- and post-collision diagonal scaling matrices in such mappings. We will show the resulting compact approach can be naturally interpreted based on special matrices.
The truncation errors resulting from the grid anisotropy associated with the cuboid lattice as well as those due to the aliasing effects will be eliminated by deriving the necessary correction terms from a Chapman–Enskog analysis, which will be augmented to the second order moment equilibria. The resulting 3DCCM-LBM is modular in construction in that the existing 3D central moment (and also its special case involving raw moment) based algorithms developed for the cubic lattices can be readily extended to cuboid lattices by using the corrections to the moment equilibria derived in this work and introducing the pre- and post-collision diagonal scaling matrices based on the grid aspect ratios.
Our cuboid LB approach will be first validated against the analytical solutions and/or numerical results for standard benchmark flow problems. The advantages of this scheme in efficiently simulating an example inhomogeneous and anisotropic flow problem with significant savings in memory storage and computational effort will then be demonstrated. Moreover, we will also show numerical stability improvements in the use of our 3D central moment scheme when compared to that based on raw moments for computation of shear flows at relatively large flow velocities and/or low viscosities.
The organization of this paper is as follows. Section 2 presents a Chapman–Enskog multiscale analysis of a 3D LB equation based on the non-orthogonal moment basis using a D3Q27 cuboid lattice. Since the viscous stress tensor in the NS equations is based on the second order non-equilibrium raw moments that are the same as the corresponding second order non-equilibrium central moments, it suffices to present our analysis based on the simpler raw moment formulation; and as part of this, we will identify the correction terms involving velocity gradients and grid aspect ratios for eliminating the grid anisotropy and non-Galilean invariant cubic velocity related truncation errors and show consistency with the 3D NS equations.
Formulas for computing the local strain rate tensor based on non-equilibrium moments and parameterized by the grid aspect ratios will also be derived in this section. In Section 3, we will discuss the complete details of the implementation aspects of our 3DCCM-LBM. Additional algorithmic details in this regard are given in various appendices (see Appendix A, Appendix B, Appendix C and Appendix D). Formulas for the momentum-augmented bounce-back scheme for the D3Q27 cuboid lattice that are dependent on the grid aspect ratios for simulating shear flows due to moving boundaries are derived and summarized in Section 4.
Section 5 presents a numerical validation study of the 3DCCM-LBM using different grid aspect ratios for a variety of benchmark flow problems. This is followed by a demonstration of the computational effectiveness of using cuboid grids (via 3DCCM-LBM) in lieu of utilizing cubic grids for simulating inhomogeneous and anisotropic flows in Section 6 and the numerical stability improvements achieved with using central moments rather than raw moments on the D3Q27 cuboid lattice at different grid aspect ratios in Section 7. Finally, the main conclusions of this work are given in Section 8.

2. Chapman–Enskog Analysis on a D3Q27 Cuboid Lattice: Isotropy Corrections, Macroscopic Flow Equations, and Local Formulas for the Strain Rate Tensor

2.1. Cuboid Lattice Parameters, Moment Basis, and Definitions of Central Moments and Raw Moments

The cuboid grid based on the three dimensional, twenty seven velocities (D3Q27) lattice used in deriving the formulation in what follows is shown in Figure 1.
The components of the particle velocities e = e x , e y , e z in the y and z directions are related to the grid aspect ratios r and s, respectively, which is defined below. In other words, these two free parameters represent the ratios of the characteristic particle speeds along the y and z directions with respect to those in the x direction, and formalize the flexibility accorded by the cuboid lattice. Thus, if Δ x , Δ y , and Δ z are the space steps in the x, y, and z directions, respectively, for evolving over a time step Δ t that would then fix the particle speeds in the respective directions (i.e., c x = Δ x / Δ t , c y = Δ y / Δ t , and c z = Δ z / Δ t ), we can then define the grid aspect ratios as r = Δ y / Δ x , and s = Δ z / Δ x .
As is standard in LB formulations, we work with the usual lattice units for simplicity in the following, i.e., the reference space step in the x direction and the time step are taken to be unity: Δ x = 1 and Δ t = 1 . Thus, Δ y = r and Δ z = s . We now clarify the notations used in Figure 1, where the magnitude of each of the particle velocity is the distance between the head and tail of an arrow representing that direction; in lattice units, with a unit time step, the Cartesian components of the length of each lattice direction or the streaming distance are bounded by ( 1 , r , s ) .
Now, since in Figure 1, for every particle velocity direction, its opposite counterpart is also depicted, the total distance for such a pair encompasses a length with components ( 2 , 2 r , 2 s ) as shown. Based on these considerations, we can then list the Cartesian components of the particle velocities for the D3Q27 cuboid lattice as follows:
| e x = ( 0 , 1 , 1 , 0 , 0 , 0 , 0 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 0 , 0 , 0 , 0 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 ) ,
| e y = ( 0 , 0 , 0 , r , r , 0 , 0 , r , r , r , r , 0 , 0 , 0 , 0 , r , r , r , r , r , r , r , r , r , r , r , r ) ,
| e z = ( 0 , 0 , 0 , 0 , 0 , s , s , 0 , 0 , 0 , 0 , s , s , s , s , s , s , s , s , s , s , s , s , s , s , s , s ) ,
where | · denotes a column vector based on the standard ‘ket’ notation and † refers to taking the transpose of any array. We will also need the following 27-dimensional vector with unit elements in what follows:
| 1 = ( 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 ) .
We then define a linearly independent set of non-orthogonal basis vectors for the D3Q27 cuboid lattice using a combination of the monomials of the type | e x m e y n e z p for integer exponents m, n, and p [30] as follows:
T = | T 0 , | T 1 , | T 2 , , | T 26 ,
where [30]
| T 0 = | 1 , | T 9 = | e x 2 + e y 2 + e z 2 | T 18 , = | e x 2 e y 2 + e x 2 e z 2 e y 2 e z 2 , | T 1 = | e x , | T 10 = | e x e y 2 + e x e z 2 , | T 19 = | e x 2 e y 2 e x 2 e z 2 , | T 2 = | e y , | T 11 = | e x 2 e y + e y e z 2 , | T 20 = | e x 2 e y e z , | T 3 = | e z , | T 12 = | e x 2 e z + e y 2 e z , | T 21 = | e x e y 2 e z , | T 4 = | e x e y , | T 13 = | e x e y 2 e x e z 2 , | T 22 = | e x e y e z 2 , | T 5 = | e x e z , | T 14 = | e x 2 e y e y e z 2 , | T 23 = | e x e y 2 e z 2 , | T 6 = | e y e z , | T 15 = | e x 2 e z e y 2 e z , | T 24 = | e x 2 e y e z 2 , | T 7 = | e x 2 e y 2 , | T 16 = | e x e y e z , | T 25 , = | e x 2 e y 2 e z , | T 8 = | e x 2 e z 2 , | T 17 = | e x 2 e y 2 + e x 2 e z 2 + e y 2 e z 2 , | T 26 = | e x 2 e y 2 e z 2 .
As discussed in the introduction section, we will not orthogonalize the above set of basis vectors further to maintain simplicity and robustness and retain them in their natural forms in the following derivation based on the 3D cuboid lattice analogous to our rectangular central moment LB formulation [26].
While the above basis vectors segregate the trace of the second order components | e x 2 + e y 2 + e z 2 from the other second order components in order to enable the independent specification of the bulk viscosity from shear viscosity, as mentioned earlier, in the algorithmic implementation of the central moment approach discussed in the next section (see Section 3), these operations will be confined only within the collision step and not for performing any mappings between distribution functions and moments. These considerations are crucial in avoiding cumbersome transformations and corrections for eliminating any truncation errors in order to develop an efficient algorithm on a cuboid lattice.
Then, we list the vectors of the distribution functions f , their equilibria f e q and the source terms S accounting for the effect of any body force with components F = ( F x , F y , F z ) experienced by the motion of the fluid with density ρ and velocity u = ( u x , u y , u z ) for the D3Q27 cuboid lattice as f = f 0 , f 1 , f 2 , , f 26 , f e q = f 0 e q , f 1 e q , f 2 e q , , f 26 e q , S = S 0 , S 1 , S 2 , , S 26 . In anticipation of the developments in Section 3, we first define the central moments of the distribution functions f α and their equilibria f e q , as well as the source term S α of order ( m + n + p ) using the weights as the peculiar velocity components, i.e., the components of the particle velocity shifted by those of the fluid velocity, as follows:
k m n p k m n p e q σ m n p = α = 0 26 f α f α e q S α ( e α x u x ) m ( e α y u y ) n ( e α z u z ) p .
We define the bare or raw moments of the above three quantities of order ( m + n + p ) by using just the particle velocity components as the weights, which are given by
k m n p , k m n p e q , σ m n p . = α = 0 26 f α f α e q S α e α x m e α y n e α z p .
Note that here and in the following any quantity with a prime notation (′) is used to distinguish it as a raw moment (as opposed to a central moment). For convenience, we now enumerate these raw moments as
n = ( k 000 , k 100 , k 010 , k 001 , k 110 , k 101 , k 011 , ( k 200 k 020 ) , ( k 200 k 002 ) , ( k 200 + k 020 + k 002 ) , ( k 120 + k 102 ) , ( k 210 + k 012 ) , ( k 201 + k 021 ) , ( k 120 k 102 ) , ( k 210 k 012 ) , ( k 201 k 021 ) , k 111 , ( k 220 + k 202 + k 022 ) , ( k 220 + k 202 k 022 ) , ( k 220 k 202 ) , k 211 , k 121 , k 112 , k 122 , k 212 , k 221 , k 222 ) ,
n e q = ( k 000 e q , k 100 e q , k 010 e q , k 001 e q , k 110 e q , k 101 e q , k 011 e q , ( k 200 e q k 020 e q ) , ( k 200 e q k 002 e q ) , ( k 200 e q + k 020 e q + k 002 e q ) , ( k 120 e q + k 102 e q ) , ( k 210 e q + k 012 e q ) , ( k 201 e q + k 021 e q ) , ( k 120 e q k 102 e q ) , ( k 210 e q k 012 e q ) , ( k 201 e q k 021 e q ) , k 111 e q , ( k 220 e q + k 202 e q + k 022 e q ) , ( k 220 e q + k 202 e q k 022 e q ) , ( k 220 e q k 202 e q ) , k 211 e q , k 121 e q , k 112 e q , k 122 e q , k 212 e q , k 221 e q , k 222 e q ) ,
Ψ = ( σ 000 , σ 100 , σ 010 , σ 001 , σ 110 , σ 101 , σ 011 , ( σ 200 σ 020 ) , ( σ 200 σ 002 ) , ( σ 200 + σ 020 + σ 002 ) , ( σ 120 + σ 102 ) , ( σ 210 + σ 012 ) , ( σ 201 + σ 021 ) , ( σ 120 σ 102 ) , ( σ 210 σ 012 ) , ( σ 201 σ 021 ) , σ 111 , ( σ 220 + σ 202 + σ 022 ) , ( σ 220 + σ 202 σ 022 ) , ( σ 220 σ 202 ) , σ 211 , σ 121 , σ 112 , σ 122 , σ 212 , σ 221 , σ 222 ) .
Here, the distribution functions and raw moments are related via T , i.e., the basis vectors (Equation (4)), as
n = T f , n eq = T f eq , Ψ = T S ,

2.2. The Lattice Boltzmann Equation

The use of a cuboid lattice would result in an anisotropic viscous tensor given in terms of the grid aspect ratios r and s via the second order non-equilibrium moments, and such grid-related anisotropy effects need be eliminated via carefully designed correction terms. In constructing such counteracting corrections, since the second order non-equilibrium raw components are the same as the corresponding central moments by definition, it is sufficient to perform an analysis on the following simpler lattice Boltzmann equation (LBE) on the raw moments, i.e., the MRT-LBE [26]:
f ( x + e Δ t , t + Δ t ) f ( x , t ) = T 1 Λ n e q n + I Λ 2 Ψ Δ t ,
where Λ = diag ω 0 , ω 1 , ω 2 , , ω 26 is the diagonal relaxation time matrix and I is a 27 × 27 identity matrix. Here, the right side of Equation (8) prescribes the relaxation of different moments n j to their equilibria n j e q at a rate given by the parameter ω j , which is augmented by the effect of the source term via Ψ j ( j = 0 , 1 , 2 , , 26 ), and the results are then mapped back into the velocity space via the inverse mapping T 1 . This is followed by the perfect advection of the distribution functions f α to the nearest node along the particle characteristics e α ( α = 0 , 1 , 2 , , 26 ) as implied by the left side Equation (8). Then, the hydrodynamic fields are computed via appropriate moments as
ρ = α = 0 26 f α , ρ u = α = 0 26 f α e α + 1 2 F Δ t .

2.3. Equilibria and Sources: Central Moments and Raw Moments

In this work, we obtain the countable discrete central moment equilibria for the D3Q27 cuboid lattice by matching those of the continuous Maxwell distribution function [29] and given by
k 000 e q = ρ , k 100 e q = k 010 e q = k 001 e q = 0 , k 110 e q = k 101 e q = k 011 e q = 0 , k 200 e q = k 020 e q = k 002 e q = c s 2 ρ , k 120 e q = k 102 e q = k 210 e q = k 012 e q = k 201 e q = k 021 e q = 0 , k 111 e q = 0 , k 220 e q = k 202 e q = k 022 e q = c s 4 ρ , k 211 e q = k 121 e q = k 112 e q = 0 , k 122 e q = k 212 e q = k 221 e q = 0 , k 222 e q = c s 6 ρ .
where c s is the speed of sound, which is an adjustable parameter of the collision model and will be related to the transport coefficients via a Chapman–Enskog analysis later.
However, the analysis in what follows that provides corrections for the second order moments as well as the algorithm devised in the next section (Section 3) for the cuboid lattice are still applicable for other collision models. These include those based on the factorization property [30,41] and cumulant collision model [28], which differ from the Maxwellian-based central moment model in the evolution of the higher order moments. Then, the corresponding discrete raw moment equilibria are obtained from Equation (10) via binomial transforms, which read as follows:
k 000 e q = ρ , k 100 e q = ρ u x , k 010 e q = ρ u y , k 001 e q = ρ u z , k 110 e q = ρ u x u y , k 101 e q = ρ u x u z , k 011 e q = ρ u y u z , k 200 e q = c s 2 ρ + ρ u x 2 , k 020 e q = c s 2 ρ + ρ u y 2 , k 002 e q = c s 2 ρ + ρ u z 2 , k 120 e q = c s 2 ρ u x + ρ u x u y 2 , k 102 e q = c s 2 ρ u x + ρ u x u z 2 , k 210 e q = c s 2 ρ u y + ρ u x 2 u y , k 012 e q = c s 2 ρ u y + ρ u y u z 2 , k 201 e q = c s 2 ρ u z + ρ u x 2 u z , k 021 e q = c s 2 ρ u z + ρ u y 2 u z , k 111 e q = ρ u x u y u z , k 220 e q = c s 4 ρ + ρ c s 2 ( u x 2 + u y 2 ) + ρ u x 2 u y 2 , k 202 e q = c s 4 ρ + ρ c s 2 ( u x 2 + u z 2 ) + ρ u x 2 u z 2 , k 022 e q = c s 4 ρ + ρ c s 2 ( u y 2 + u z 2 ) + ρ u y 2 u z 2 , k 211 e q = ρ ( c s 2 + u x 2 ) u y u z , k 121 e q = ρ ( c s 2 + u y 2 ) u x u z , k 112 e q = ρ ( c s 2 + u z 2 ) u x u y , k 122 e q = c s 4 ρ u x + ρ c s 2 u x ( u y 2 + u z 2 ) + ρ u x u y 2 u z 2 , k 212 e q = c s 4 ρ u y + ρ c s 2 u y ( u x 2 + u z 2 ) + ρ u x 2 u y u z 2 , k 221 e q = c s 4 ρ u z + ρ c s 2 u z ( u x 2 + u y 2 ) + ρ u x 2 u y 2 u z , k 222 e q = c s 6 ρ + ρ c s 4 ( u x 2 + u y 2 + u z 2 ) + ρ c s 2 ( u x 2 u y 2 + u y 2 u z 2 + u x 2 u z 2 ) + ρ u x 2 u y 2 u z 2 .
In addition, the central moments of the source terms for recovering the NS equations in 3D are given by [30]
σ 000 = 0 , σ 100 = F x , σ 010 = F y , σ 001 = F z , σ m n p = 0 i f ( m + n + p ) 2 ,
and the corresponding raw moments follow from their binomial transform as in [30]
σ 000 = 0 , σ 100 = F x σ 110 = F x u y + F y u x , σ 200 = 2 F x u x , σ 010 = F y , σ 101 = F x u z + F z u x , σ 020 = 2 F y u y , σ 001 = F z , σ 011 = F y u z + F z u y , σ 002 = 2 F z u z , σ m n p = 0 if ( m + n + p ) 3 ;

2.4. Chapman–Enskog Analysis: Identification of Truncation Errors Due to Grid Anisotropy and Non-Galilean Invariance from Aliasing Effects on the D3Q27 Cuboid Lattice

We will now perform an analysis based on the Chapman–Enskog (C-E) multiscale expansion [42], written for the LBE in the matrix form by d’Humières [43], to identify the truncation errors due to anisotropic effects arising from using the cuboid lattice grid and non-Galilean invariant (GI) cubic velocity errors resulting from the aliasing effects associated with the D3Q27 lattice. Corrections to eliminate these errors will then be derived in what follows. The analysis for a 3D LBE formulation given above follows the approach presented in Premnath and Banjeree [44] and Hajabdollahi and Premnath [45], which was adopted for constructing a rectangular LB algorithm recently [26].
In this version of the C-E analysis, we expand the moments about their equilibria by including the non-equilibrium effects as higher order perturbations and the time derivative as a multiple scale expansion as follows:
n = j = 0 ϵ j n ( j ) , t = j = 0 ϵ j t j ,
where ϵ = Δ t is the perturbation parameter that serves the purpose of bookkeeping and isolating terms of the different orders. Moreover, we apply a multivariate Taylor series expansion in both space and time to the first term on the left side of Equation (8) and then transform all the resulting terms to the moment space via f = T 1 n . Subsequently, substituting the C-E expansions (Equation (14)) in the 3D LBE with the natural moment basis given in Equation (8) and then grouping terms of the same order of ϵ , we obtain the following set of moment equations identified by O ( ϵ k ) for k = 0 , 1 , and 2:
O ( ϵ 0 ) : n ( 0 ) = n e q ,
O ( ϵ 1 ) : t 0 + E i i n ( 0 ) = Λ n ( 1 ) + Ψ ,
O ( ϵ 2 ) : t 1 n ( 0 ) + t 0 + E i i I Λ 2 n ( 1 ) = Λ n ( 2 ) ,
where E i = T ( e i I ) T 1 and e i = | e i with i ( x , y , z ) . We then re-express Equations (15b,c) in the long form, which, respectively, read as
O( ϵ ) moment system:
t 0 n ( 0 ) + x E x n ( 0 ) + y E y n ( 0 ) + z E z n ( 0 ) = Λ n ( 1 ) + Ψ .
O( ϵ 2 ) moment system:
t 0 n ( 0 ) + t 0 I Λ 2 n ( 1 ) + x E x I Λ 2 n ( 1 ) + y E y I Λ 2 n ( 1 ) + z E z I Λ 2 n ( 1 ) = Λ n ( 2 ) .
Substituting the moment equilibria n ( 0 ) listed in Equation (11) into the O ( ϵ ) Equation (16), we now write explicitly all the equations up to the second order moment components that are relevant to determining the fluid dynamical behavior as follows:
t 0 ρ + x ( ρ u x ) + y ( ρ u y ) + z ( ρ u z ) = 0 ,
t 0 ( ρ u x ) + x ( ρ c s 2 + ρ u x 2 ) + y ( ρ u x u y ) + z ( ρ u x u z ) = F x ,
t 0 ( ρ u y ) + x ( ρ u x u y ) + y ( ρ c s 2 + ρ u y 2 ) + z ( ρ u y u z ) = F y ,
t 0 ( ρ u z ) + x ( ρ u x u z ) + y ( ρ u y u z ) + z ( ρ c s 2 + ρ u z 2 ) = F z ,
t 0 ( ρ u x u y ) + x ( c s 2 ρ u y + ρ u x 2 u y ) + y ( c s 2 ρ u x + ρ u x u y 2 ) + z ( ρ u x u y u z ) = ω 4 n 4 ( 1 ) + F x u y + F y u x ,
t 0 ( ρ u x u z ) + x ( c s 2 ρ u z + ρ u x 2 u z ) + y ( ρ u x u y u z ) + z ( c s 2 ρ u x + ρ u x u z 2 ) = ω 5 n 5 ( 1 ) + F x u z + F z u x ,
t 0 ( ρ u y u z ) + x ( ρ u x u y u z ) + y ( c s 2 ρ u z + ρ u y 2 u z ) + z ( c s 2 ρ u y + ρ u y u z 2 ) = ω 6 n 6 ( 1 ) + F y u z + F z u y ,
t 0 ( ρ ( u x 2 u y 2 ) + x ( 1 c s 2 ) ρ u x ρ u x u y 2 + y ( r 2 + c s 2 ) ρ u y + ρ u x 2 u y ̲ + z ( ρ ( u x 2 u y 2 ) u z = ω 7 n 7 ( 1 ) + 2 F x u x F y u y ,
t 0 ρ ( u x 2 u z 2 ) + x ( 1 c s 2 ) ρ u x ρ u x u z 2 + y ( ρ ( u x 2 u z 2 ) u y + z ( s 2 + c s 2 ) ρ u z + ρ u x 2 u z ̲ = ω 8 n 8 ( 1 ) + 2 F x u x F z u z ,
t 0 3 c s 2 ρ + ρ ( u x 2 + u y 2 + u z 2 ) + x ( 1 + 2 c s 2 ) ρ u x + ρ u x ( u y 2 + u z 2 ) + y ( r 2 + 2 c s 2 ) ρ u y + ρ u y ( u x 2 + u z 2 ) ̲ + z ( s 2 + 2 c s 2 ) ρ u z + ρ u z ( u x 2 + u y 2 ) ̲ = ω 9 n 9 ( 1 ) + 2 F x u x + F y u y + F z u z ,
Clearly, at the O ( ϵ ) level, the evolution of the conserved moments (Equation (18a–c)) are unaffected by anisotropic lattice grid. In other words, the evolutions of the density and the components of the momentum at the O ( ϵ ) level, respectively, given in (Equation (18a–c)) do not contain any spurious terms associated with the grid aspect ratios. On the other hand, it is evident from the underlined terms that the diagonal components of the non-equilibrium parts of second order moments ( n 7 ( 1 ) , n 8 ( 1 ) and n 9 ( 1 ) ) are influenced by the grid aspect ratios r and s.
Hence, it follows that such underlined terms will impact the viscous stress tensor and, hence, the hydrodynamics. Thus, in order to obtain the complete picture, we show in the following the evolution of the conserved moments at the O ( ϵ 2 ) level, i.e., the leading four moment components of Equation (17), which manifest the effect of the non-equilibrium parts on the evolution of density and momentum components at the slower time scale t 1 :
t 1 ρ = 0 ,
t 1 ρ u x + x 1 3 1 ω 7 2 n 7 ( 1 ) + 1 3 1 ω 8 2 n 8 ( 1 ) + 1 3 1 ω 9 2 n 9 ( 1 ) + y 1 ω 4 2 n 4 ( 1 ) + z 1 ω 5 2 n 5 ( 1 ) = 0 ,
t 1 ρ u y + x 1 ω 4 2 n 4 ( 1 ) + y 2 3 1 ω 7 2 n 7 ( 1 ) + 1 3 1 ω 8 2 n 8 ( 1 ) + 1 3 1 ω 9 2 n 9 ( 1 ) + z 1 ω 6 2 n 6 ( 1 ) = 0 ,
t 1 ρ u z + x 1 ω 5 2 n 5 ( 1 ) + y 1 ω 6 2 n 6 ( 1 ) + z [ 2 3 1 ω 7 2 n 7 ( 1 ) + 1 3 1 ω 8 2 n 8 ( 1 ) + 1 3 1 ω 9 2 n 9 ( 1 ) ] = 0 ,
Evidently, the hydrodynamical behavior given in Equation (19b–d) is influenced by the grid aspect ratios via the non-equilibrium moments n 7 ( 1 ) , n 8 ( 1 ) , and n 9 ( 1 ) , which needs to be eliminated. Before accomplishing this, we need the complete expressions of the second order non-equilibrium moments in order to isolate the truncation errors from terms that correspond to physics. Hence, we rewrite Equation (18e–j) after segregating the terms associated with the grid aspect ratios r and s (see underlined terms) from those associated with the standard cubic lattice (terms within the brackets { } ) as follows:
n 4 ( 1 ) = 1 ω 4 t 0 ( ρ u x u y ) x ( c s 2 ρ u y + ρ u x 2 u y ) y ( c s 2 ρ u x + ρ u x u y 2 ) z ( ρ u x u y u z ) + ( F x u y + F y u x ) ,
n 5 ( 1 ) = 1 ω 5 t 0 ( ρ u x u z ) x ( c s 2 ρ u z + ρ u x 2 u z ) y ( ρ u x u y u z ) z ( c s 2 ρ u x + ρ u x u z 2 ) + ( F x u z + F z u x ) ,
n 6 ( 1 ) = 1 ω 6 t 0 ( ρ u y u z ) x ( ρ u x u y u z ) y ( c s 2 ρ u z + ρ u y 2 u z ) z ( c s 2 ρ u y + ρ u y u z 2 ) + ( F y u z + F z u y ) ,
n 7 ( 1 ) = 1 ω 7 { t 0 ( ρ u x 2 ρ u y 2 ) x ( 1 c s 2 ) ρ u x ρ u x u y 2 y ( 1 + c s 2 ) ρ u y + ρ u x 2 u y z ρ ( u x 2 u y 2 ) u z + 2 ( F x u x F y u y ) } 1 ω 7 ( 1 r 2 ) y ( ρ u y ) ̲ ,
n 8 ( 1 ) = 1 ω 8 { t 0 ( ρ u x 2 ρ u z 2 ) x ( 1 c s 2 ) ρ u x ρ u x u z 2 y ρ ( u x 2 u z 2 ) u y z ( 1 + c s 2 ) ρ u z + ρ u x 2 u z + 2 ( F x u x F z u z ) } 1 ω 8 ( 1 s 2 ) z ( ρ u z ) ̲ ,
n 9 ( 1 ) = 1 ω 9 { 3 c s 2 t 0 ρ t 0 ( ρ u x 2 + ρ u z 2 + ρ u z 2 ) x ( 1 + 2 c s 2 ) ρ u x + ρ u x ( u y 2 + u z 2 ) y [ ( 1 + 2 c s 2 ) ρ u y + ρ u y ( u x 2 + u z 2 ) ] z [ ( 1 + 2 c s 2 ) ρ u z + ρ u z ( u x 2 + u y 2 ) ] + 2 ( F x u x + F y u y + F z u z ) } 1 ω 9 ( r 2 1 ) y ( ρ u y ) ̲ 1 ω 9 ( s 2 1 ) z ( ρ u z ) ̲ .
The diagonal parts of the non-equilibrium moments n 7 ( 1 ) , n 8 ( 1 ) , and n 9 ( 1 ) contain contributions from the non-GI cubic velocity terms due to aliasing effects associated with the D3Q27 lattice (e.g., α f α e α i 3 = α f α e α i , where i { x , y , z } ), which appear together with the physical terms within those enclosed within the brackets { } ) of Equation (20d–f) in addition to the grid-dependent anisotropic errors. The grid-anisotropy related error terms will be denoted by E j s , while the non-GI cubic velocity truncation errors will be referred to as E j g for j = 7 , 8 , and 9.
The structures of the non-equilibrium moments can then be obtained from Equation (20a–f) after substituting for the time derivatives of the conserved moments by means of terms related to the spatial derivatives using Equation (18a–d) and simplifying the resulting equations by retaining terms of O ( u i 3 ) (following Hajabdollahi and Premnath [45]). The off-diagonal second order non-equilibrium moments n 4 ( 1 ) = k 110 ( 1 ) , n 5 ( 1 ) = k 101 ( 1 ) and n 6 ( 1 ) = k 011 ( 1 ) , which do not contain any truncation errors, then read as
n 4 ( 1 ) = c s 2 ρ ω 4 x u y + y u x ,
n 5 ( 1 ) = c s 2 ρ ω 5 x u z + z u x ,
n 6 ( 1 ) = c s 2 ρ ω 6 y u z + z u y .
Finally, the diagonal second order non-equilibrium moments n 7 ( 1 ) = k 200 ( 1 ) k 020 ( 1 ) , n 8 ( 1 ) = k 200 ( 1 ) k 002 ( 1 ) and n 9 ( 1 ) = k 200 ( 1 ) + k 020 ( 1 ) + k 002 ( 1 ) are given as follows:
n 7 ( 1 ) = 2 c s 2 ρ ω 7 x u x y u y + E 7 s + E 7 g ,
n 8 ( 1 ) = 2 c s 2 ρ ω 8 x u x z u z + E 8 s + E 8 g ,
n 9 ( 1 ) = 2 c s 2 ρ ω 9 x u x + y u y + z u z + E 9 s + E 9 g ,
where the truncation errors due to grid-anisotropy E 7 s , E 8 s , and E 9 s and non-GI aliasing effects E 7 g , E 8 g , and E 9 g can be written as
E 7 s = 1 ω 7 ( 3 c s 2 1 ) x ( ρ u x ) ( 3 c s 2 r 2 ) y ( ρ u y ) ,
E 7 g = 3 ρ ω 7 u x 2 x u x u y 2 y u y ,
E 8 s = 1 ω 8 ( 3 c s 2 1 ) x ( ρ u x ) ( 3 c s 2 s 2 ) z ( ρ u z ) ,
E 8 g = 3 ρ ω 8 u x 2 x u x u z 2 z u z ,
E 9 s = 1 ω 9 ( 3 c s 2 1 ) x ( ρ u x ) + ( 3 c s 2 r 2 ) y ( ρ u y ) + ( 3 c s 2 s 2 ) z ( ρ u z ) ,
E 9 g = 3 ρ ω 9 u x 2 x u x + u y 2 y u y + u z 2 z u z .

2.5. Elimination of Errors Due to Lattice Stretching and Non-GI Cubic Velocity Terms via Extended Moment Equilibria

In order to eliminate the truncation errors identified above in Equation (23a–f) associated with Equation (22a–c), we now extend the moment equilibria n e q to an effective moment equilibria n eq , eff as
n eq , eff = n e q + Δ t n e q ( 1 ) ,
where n e q ( 1 ) are the required correction terms. Since the truncation errors appear in the diagonal parts of the second order non-equilibrium moments only, it suffices to consider non-zero correction terms only for those corresponding components identified by the indices 7, 8, and 9 in the effective equilibria. Hence, we write
n e q ( 1 ) = θ 7 x x u x θ 7 y y u y + λ 7 x x ρ + λ 7 y y ρ , j = 7 θ 8 x x u x θ 8 z z u z + λ 8 x x ρ + λ 8 z z ρ , j = 8 θ 9 x x u x + θ 9 y y u y + θ 9 z z u z + λ 9 x x ρ + λ 9 y y ρ + λ 9 z z ρ , j = 9 0 , otherwise
The expressions in Equation (25) are inspired by an inspection of Equation (23a–f) and involve the diagonal components of the velocity gradient tensor x u x y u y and z u z , and the density gradients x ρ , y ρ and z ρ , and their unknown coefficients θ 7 x , θ 7 y , θ 8 x , θ 8 z , θ 9 x , θ 9 y , and θ 9 z , and λ 7 x , λ 7 y , λ 8 x , λ 8 z , λ 9 x , λ 9 y , and λ 9 z . The formulas for these coefficients will now be established by performing a modified C-E analysis that accounts for the effective moment equilibria introduced in Equation (24) into the expansion. That is,
n = n eq , eff + ϵ n ( 1 ) + ϵ 2 n ( 2 ) + = n e q + ϵ n e q ( 1 ) ̲ + ϵ n ( 1 ) + ϵ 2 n ( 2 ) + , t = t 0 + ϵ t 1 + ϵ 2 t 2 + .
Then, repeating the steps performed in Section 2.4, the respective moment equations of O ( ϵ k ) for k = 0 , 1 , and 2, respectively, in Equations (15a–c) are replaced with the following:
O ( ϵ 0 ) : n ( 0 ) = n eq ,
O ( ϵ 1 ) : t 0 + E i i n ( 0 ) = Λ n ( 1 ) n e q ( 1 ) ̲ + Ψ ,
O ( ϵ 2 ) : t 1 n ( 0 ) + t 0 + E i i I Λ 2 n ( 1 ) + t 0 + E i i Λ 2 n e q ( 1 ) ̲ = Λ n ( 2 ) .
Notice that the moment equilibria corrections appear in both O ( ϵ ) and O ( ϵ 2 ) equations in Equation (26b,c), respectively, via the underlined terms. Following the steps in Section 2.4, we simplify Equation (26b) for the leading set of moments up to the second order that are related to the derivation of the hydrodynamical equations. These lead to the following results for the effective non-equilibrium parts of the second order moments:
n 4 ( 1 ) = c s 2 ρ ω 4 x u y + y u x ,
n 5 ( 1 ) = c s 2 ρ ω 5 x u z + z u x ,
n 6 ( 1 ) = c s 2 ρ ω 6 y u z + z u y ,
n 7 ( 1 ) = 2 c s 2 ρ ω 7 x u x y u y + ( E 7 s + E 7 g ) + n 7 e q ( 1 ) ̲ ,
n 8 ( 1 ) = 2 c s 2 ρ ω 8 x u x z u z + ( E 8 s + E 8 g ) + n 8 e q ( 1 ) ̲ ,
n 9 ( 1 ) = 2 c s 2 ρ ω 9 x u x + y u y + z u z + ( E 9 s + E 9 g ) + n 9 e q ( 1 ) ̲ ,
where E j g and E j s ( j = 7 , 8 , and 9 ) are truncation error terms associated with grid anisotropy and non-GI due to aliasing, which are given in Equation (23a–f) and n 7 e q ( 1 ) , n 8 e q ( 1 ) , and n 9 e q ( 1 ) are the corresponding yet to be determined corrections.
It now remains to obtain the desired expressions for the correction terms. In this regard, we combine the moment equations (Equation (26b)), in particular, those for the hydrodynamic moments (mass and momentum components) evolving at time scale t 0 with ϵ times the corresponding equations (Equation (26c)) based on the time scale t 1 variations. Then, using t = t 0 + ϵ t 1 , we obtain the effective evolution equations for all the moments, including the macroscopic fields related to the mass and momentum components.
In particular, the momentum equations will then contain the truncation error terms and the counteracting correction terms along with those associated with the physics. We can then isolate the terms related to the truncation errors and corrections from those related to the desired NS equations and set the combined effect of the former to be zero. This would then lead to constraint relations between the errors and the required corrections as discussed in detail in Hajabdollahi and Premnath [45]. Thus, if we define the following vector containing the truncation errors as
Ξ = φ 0 , φ 1 , φ 2 , , φ 26 ,
where
φ j = E 7 s + E 7 g j = 7 E 8 s + E 8 g j = 8 E 9 s + E 9 g j = 9 0 otherwise ,
Then, it follows from Equations (26b,c) and (27a–f), the required constraint equation between the moment equilibria corrections vector n e q ( 1 ) identified in Equation (24) and the vector of truncation errors Ξ is given by
n e q ( 1 ) + I Λ 2 Ξ = 0 ,
Specifically, it reduces to
n j e q ( 1 ) + 1 ω j 2 ( E j s + E j g ) = 0 , j = 7 , 8 , 9 .
In Equation (31), we do not assume the summation convention of repeated indices.
Now, evaluating Equation (31) by applying Equation (25) for j = 7 and using Equation (23a,b), we find
θ 7 x x u x θ 7 y y u y + λ 7 x x ρ + λ 7 y y ρ = 1 ω 7 2 E 7 s 1 ω 7 2 E 7 g .
By comparing, we finally obtain the following required expressions for the coefficients θ 7 x , θ 7 y , λ 7 x , and λ 7 y :
θ 7 x = 1 ω 7 1 2 ρ ( 3 c s 2 1 ) + 3 u x 2 ,
θ 7 y = 1 ω 7 1 2 ρ ( 3 c s 2 r 2 ) + 3 u y 2 ,
λ 7 x = 1 ω 7 1 2 3 c s 2 1 u x ,
λ 7 y = + 1 ω 7 1 2 3 c s 2 r 2 u y ,
Repeating these steps by applying Equations (31) and (25) together for j = 8 and j = 9 and invoking Equation (23c,d) and Equation (23e,f), respectively, i.e.,
θ 8 x x u x θ 8 z z u z + λ 8 x x ρ + λ 8 z z ρ = 1 ω 8 2 E 8 s 1 ω 8 2 E 8 g ,
and
θ 9 x x u x + θ 9 y y u y + θ 9 z z u z + λ 9 x x ρ + λ 9 y y ρ + λ 9 z z ρ = 1 ω 9 2 E 9 s 1 ω 9 2 E 9 g ,
we arrive at the required formulas for the coefficients θ 8 x , θ 8 z , λ 8 x , λ 8 z , and θ 9 x , θ 9 y , θ 9 z , λ 9 x , λ 9 y , and λ 9 z as follows:
θ 8 x = 1 ω 8 1 2 ρ ( 3 c s 2 1 ) + 3 u x 2 ,
θ 8 z = 1 ω 8 1 2 ρ ( 3 c s 2 s 2 ) + 3 u z 2 ,
λ 8 x = 1 ω 8 1 2 3 c s 2 1 u x ,
λ 8 z = + 1 ω 8 1 2 3 c s 2 s 2 u z ,
and
θ 9 x = 1 ω 9 1 2 ρ ( 3 c s 2 1 ) + 3 u x 2 ,
θ 9 y = 1 ω 9 1 2 ρ ( 3 c s 2 r 2 ) + 3 u y 2 ,
θ 9 z = 1 ω 9 1 2 ρ ( 3 c s 2 s 2 ) + 3 u z 2 ,
λ 9 x = 1 ω 9 1 2 3 c s 2 1 u x ,
λ 9 y = 1 ω 9 1 2 3 c s 2 r 2 u y ,
λ 9 z = 1 ω 9 1 2 3 c s 2 s 2 u z ,
When the extended moment equilibria (Equation (24)) using the corrections (Equation (25)) with these above coefficients are used in the LBE formulation based on the D3Q27 cuboid lattice, we recover the 3D NS equations given by
t ρ + . ( ρ u ) = 0 ,
t ( ρ u ) + · ( ρ u u ) = p + · ρ ν u + ( u ) + ξ 2 3 ν · u I + F ,
where p = c s 2 ρ represents the pressure field, and the bulk viscosity ξ and shear viscosity ν are related to the relaxation parameters of the second order moments as
ξ = 2 c s 2 3 1 ω 9 1 2 Δ t , ν = c s 2 1 ω j 1 2 Δ t , j = 4 , 5 , , 8 .
Before concluding this section, the following important remarks related to our above derivation are in order:
  • The expressions for the moment equilibria corrections and the transport coefficients involve only the minimally required set of free parameters, viz., the grid aspect ratios r and s and the speed of sound c s , and are considerably simpler than those used in a recent work [38] that used a set of orthogonalized moment basis on the D3Q19 cuboid lattice and many additional parameters in the specification of the equilibria. Moreover, unlike the previous study [38], the equilibria used in our approach given in Equation (11) involve higher order velocity terms obtained from matching with the moments of the continuous Maxwell distribution, thereby, naturally eliminating the non-GI truncation errors.
    This aspect along with the use of the non-orthogonal moment basis in the present derivation avoids a spurious coupling of the evolution of the higher order moments with those of the lower moments existing in approaches that use orthogonal moment basis [27], which result in a robust LBE formulation on a cuboid lattice.
  • The results derived here for the D3Q27 cuboid lattice for the counteracting corrections and the transport coefficients are also equally valid for the D3Q15 and D3Q19 cuboid lattice sets when they use subsets of the same non-orthogonal moment basis.
  • The formulas derived in this section for the equilibria corrections necessary to eliminate the grid anisotropy and non-GI error are general and applicable for a wide variety of collision models. For example, if k m n p , k m n p , and c m n p correspond to raw moments, central moments and cumulants, respectively, of order ( m + n + p ) , owing to the definitions of these quantities, it follows that their second order non-equilibrium components are identical, i.e., k m n p ( 1 ) = k m n p ( 1 ) = c m n p ( 1 ) for ( m + n + p ) = 2 . From this, it follows that the formulas obtained above can be directly incorporated into either raw moment-, central moment- or cumulant-based 3D LB algorithms extended to using a cuboid lattice.
    Moreover, we point out that our derivation can be readily used to construct even an SRT-based LB scheme using a cuboid lattice by setting all the relaxation parameters equal to one another and then constructing the equilibrium distribution functions including the necessary corrections in the velocity space via using f eq , eff = T 1 n eq , eff = T 1 ( n e q + Δ t n e q ( 1 ) ) . However, as demonstrated in our recent work on the rectangular lattice [26], the SRT- and raw moment-based LB schemes are less stable compared to those based on central moments; hence, the present investigation will focus on further developing the derivation presented here into an efficient and robust 3D LB algorithm on the D3Q27 cuboid lattice and their numerical study in the following sections. Such an implementation for a cumulant collision kernel on a cuboid lattice is a subject for a future study.
  • When r = s = 1 and c s 2 = 1 / 3 , all the correction terms shown above become equal to zero, and the previous formulations applicable for the cubic lattice sets are recovered.
  • Finally, when interested in simulating relatively very low Mach number flows, the non-GI cubic velocity errors can become relatively small and can, thus, be neglected. Under such conditions, the formulas derived in the above for the corrections lead to further simplifications. In particular, the coefficients determined above reduce to the following:
    θ 7 x = 1 ω 7 1 2 ρ ( 3 c s 2 1 ) , θ 7 y = 1 ω 7 1 2 ρ ( 3 c s 2 r 2 ) , λ 7 x = λ 7 y = 0 ,
    θ 8 x = 1 ω 8 1 2 ρ ( 3 c s 2 1 ) , θ 8 z = 1 ω 8 1 2 ρ ( 3 c s 2 s 2 ) , λ 8 x = λ 8 z = 0 ,
    θ 9 x = 1 ω 9 1 2 ρ ( 3 c s 2 1 ) , θ 9 y = 1 ω 9 1 2 ρ ( 3 c s 2 r 2 ) , θ 9 z = 1 ω 9 1 2 ρ ( 3 c s 2 s 2 ) , λ 9 x = λ 9 y = λ 9 z = 0 ,
    and thus we do not require the computation of the density gradients; moreover, the local expressions for the velocity gradients derived in the next section will become more compact and can be readily re-derived when required.

2.6. Strain Rate Tensor Components Based on Non-Equilibrium Moments for the D3Q27 Cuboid Lattice

The moment equilibria corrections in Equation (25) depend on the diagonal parts of the strain rate tensor x u x , y u y , and z u z . These components, along with the off-diagonal components, i.e., 1 2 ( x u y + y u x ) , 1 2 ( x u z + z u x ) and 1 2 ( y u z + z u y ) can be obtained locally from the second-order non-equilibrium moments as follows. From Equations (27d) and (31) for j = 7 and using Equation (23a,b), and after rearranging, we find
2 c s 2 ω 7 + 1 2 ( 3 c s 2 1 ) + 3 u x 2 2 ρ x u x + 2 c s 2 ω 7 1 2 ( 3 c s 2 r 2 ) 3 u y 2 2 ρ y u y = n 7 ( 1 ) 1 2 ( 3 c s 2 1 ) u x x ρ + 1 2 ( 3 c s 2 r 2 ) u y y ρ ,
Combining Equations (27e) and (31) for j = 8 , applying Equation (23c,d), and after rearranging, it follows that
2 c s 2 ω 8 + 1 2 ( 3 c s 2 1 ) + 3 2 u x 2 ρ x u x + 2 c s 2 ω 8 1 2 ( 3 c s 2 s 2 ) 3 2 u z 2 ρ z u z = n 8 ( 1 ) 1 2 ( 3 c s 2 1 ) u x x ρ + 1 2 ( 3 c s 2 1 ) u z z ρ ,
Finally, using Equations (27f) and (31) together for j = 9 along with Equation (23e,f), we obtain the following:
2 c s 2 ω 9 + 1 2 ( 3 c s 2 1 ) + 3 2 u x 2 ρ x u x + 2 c s 2 ω 9 + 1 2 ( 3 c s 2 r 2 ) + 3 2 u y 2 ρ y u y + 2 c s 2 ω 9 + 1 2 ( 3 c s 2 s 2 ) + 3 2 u z 2 ρ z u z = n 9 ( 1 ) 1 2 ( 3 c s 2 1 ) u x x ρ 1 2 ( 3 c s 2 r 2 ) u y y ρ 1 2 ( 3 c s 2 s 2 ) u z z ρ .
We can use the above three equations to solve for the diagonal parts of the strain rate tensor as follows. First, we define the following variables:
A = 1 2 3 c s 2 1 u x , B = 1 2 3 c s 2 r 2 u y , C = 1 2 3 c s 2 s 2 u z ,
e 7 ρ = A x ρ + B y ρ ,
e 8 ρ = A x ρ + C z ρ ,
e 9 ρ = A x ρ B y ρ C z ρ .
Here, the density gradients x ρ , y ρ , and z ρ are based on a (isotropic) second order finite-difference scheme (see the work by Kumar [46] and Leclaire [47] for details). The Equations (38)–(40) require the non-equilibrium moments n 7 ( 1 ) , n 8 ( 1 ) , and n 9 ( 1 ) , respectively, which can be obtained from either using raw moments or central moments as follows:
n 7 ( 1 ) = k 200 k 020 k 200 e q k 020 e q = k 200 k 020 k 200 e q k 020 e q , n 8 ( 1 ) = k 200 k 002 k 200 e q k 002 e q = k 200 k 002 k 200 e q k 002 e q , n 9 ( 1 ) = k 200 + k 020 + k 002 k 200 e q + k 020 e q + k 002 e q = k 200 + k 020 + k 002 k 200 e q + k 020 e q + k 002 e q ,
where the equilibrium central moments k 200 e q , k 020 e q and k 002 e q are given in Equation (10), while the corresponding raw moments are listed in Equation (11). For example,
n 7 ( 1 ) = k 200 k 020 ,
n 8 ( 1 ) = k 200 k 002 ,
n 9 ( 1 ) = k 200 + k 020 + k 002 3 ρ c s 2 .
Based on these considerations, we can rewrite the right and left sides Equations (38)–(40), respectively, by means of the following variables:
R 7 = n 7 ( 1 ) + e 7 ρ = k 200 k 020 + e 7 ρ ,
R 8 = n 8 ( 1 ) + e 8 ρ = k 200 k 002 + e 8 ρ ,
R 9 = n 9 ( 1 ) + e 9 ρ = k 200 + k 020 + k 002 3 ρ c s 2 + e 9 ρ ,
and
C 7 x = 2 c s 2 ω 7 + 1 2 3 c s 2 1 + 3 2 u x 2 ρ , C 7 y = + 2 c s 2 ω 7 1 2 3 c s 2 r 2 3 2 u y 2 ρ , C 8 x = 2 c s 2 ω 8 + 1 2 3 c s 2 1 + 3 2 u x 2 ρ , C 8 z = + 2 c s 2 ω 8 1 2 3 c s 2 s 2 3 2 u z 2 ρ , C 9 x = 2 c s 2 ω 9 + 1 2 3 c s 2 1 + 3 2 u x 2 ρ , C 9 y = 2 c s 2 ω 9 + 1 2 3 c s 2 r 2 + 3 2 u y 2 ρ , C 9 z = 2 c s 2 ω 9 + 1 2 3 c s 2 s 2 + 3 2 u z 2 ρ .
Then, Equations (38)–(40) reduce to the following system of equations
C 7 x x u x + C 7 y y u y = R 7 ,
C 8 x x u x + C 8 z z u z = R 8 ,
C 9 x x u x + C 9 y y u y + C 9 z z u z = R 9 ,
which can be readily solved as follows, thus, providing the local expressions for the diagonal components of the strain rate tensor on a cuboid lattice:
x u x = C 8 z C 9 y R 7 C 7 y C 9 z R 8 C 8 z R 9 C 7 x C 8 z C 9 y C 7 y C 8 x C 9 z C 8 z C 9 x ,
y u y = R 7 C 7 x x u x / C 7 y , z u z = R 8 C 8 x x u x / C 8 z .
For completeness, we note that the off-diagonal components of the strain rate tensor can be obtained from Equation (27a–c) as
1 2 ( x u y + y u x ) = ω 4 2 ρ c s 2 n 4 ( 1 ) , n 4 ( 1 ) = k 110 ρ u x u y = k 110 ,
1 2 ( x u z + z u x ) = ω 5 2 ρ c s 2 n 5 ( 1 ) , n 5 ( 1 ) = k 101 ρ u x u z = k 101
1 2 ( y u z + z u y ) = ω 6 2 ρ c s 2 n 6 ( 1 ) , n 6 ( 1 ) = k 011 ρ u y u z = k 011 .
Before concluding this section, we provide a guideline in choosing the speed of sound c s for the cuboid lattice-based LB formulations. The optimal value for the cubic lattice c s 2 = 1 / 3 . However, in general cases for the cuboid lattice, the particle speeds in the y and z directions are, respectively, r and s times the particle speed in the x direction. With different particle speeds in different coordinate directions, based on physical considerations, the speed of sound is then chosen as c s 2 = ( 1 / 3 ) min ( r 2 , s 2 ) . This choice maintains the physically consistent isotropy requirements, reduces the number of spurious terms to be eliminated via the corrections derived earlier, and recovers the optimal value for the cubic lattice.

3. 3D Cuboid Central Moment LBM (3DCCM-LBM) Using a Non-Orthogonal Moment Basis on the D3Q27 Lattice

Before constructing a 3D central moment LBM on the cuboid lattice grid using the derivation presented in the previous section, we first note a challenge in directly using the moment basis T given in Equations (3) and (4) and the resulting definition of the moments in Equation (7), and then present its simple resolution that is more suitable for devising an efficient algorithm. In particular, the moment basis T (Equations (3) and (4)) involves linear combinations of moments of their second order diagonal components that are written to separate the trace of the diagonal elements from the others in order to allow an independent specification of the bulk and shear viscosities and are also accordingly parameterized by the grid aspect ratios r and s.
This was necessary in showing consistency of our approach to the 3D NS equations and in the derivation of the required corrections for using the cuboid lattice. Now, since the collision step needs to be performed in terms of the relaxations of either the raw moments or the central moments and whose effect need to be transformed back into the velocity space in terms of the distribution functions via T 1 (see e.g., Equation (8) for the raw moment representation of the LBE), a direct inversion of T would lead to cumbersome expressions involving the grid aspect ratios r and s.
However, we will now show that, by using a re-defined moment basis, the segregation of the evolution of the moments for independent adjustments of bulk and shear viscosities can still be achieved by confining it only within the collision step for the relaxation process and not for the mappings, which would have the same overall effect as the original moment basis. Such equivalent but considerably simpler re-formulations of the moment basis and the associated LBE given in Equation (8) will then form the foundation for the constructions of the 3D LB scheme on the cuboid lattice based on raw moments as well as its generalization in terms of central moments.

3.1. Efficient Formulation of LBE on the Cuboid Lattice and Its Interpretation Based on Various Matrices

First, we define the following moment basis Q involving just the linearly independent bare moments for the D3Q27 cuboid lattice (i.e., without any linear combinations of them as in T – see Equations (3) and (4)):
Q = [ | 1 , | e x , | e y , | e z , | e x e y , | e x e z , | e y e z , | e x 2 , | e y 2 , | e z 2 , | e x e y 2 , | e x e z 2 , | e x 2 e y , | e y e z 2 , | e x 2 e z , | e y 2 e z , | e x e y e z , | e x 2 e y 2 , | e x 2 e z 2 , | e y 2 e z 2 , | e x 2 e y e z , | e x e y 2 e z , | e x e y e z 2 , | e x e y 2 e z 2 , | e x 2 e y e z 2 , | e x 2 e y 2 e z , | e x 2 e y 2 e z 2 ] .
where the particle velocities | e x , | e x and | e z appearing in Equation (50) are given in Equation (1a–c) and thus Q depends on the grid aspect ratios r and s. We can then express a correspondence between this re-defined moment basis Q and the original one, i.e, T given Equations (3) and (4) using
T = B Q ,
where B represents those operations that combine the various moments according to Equation (4) and has the form of a block diagonal matrix. While an explicit specification of B is not necessary for the following discussion, Equation (51) would be helpful in recasting the LBE in an equivalent form that leads to an efficient implementation. Moreover, let us see how this moment basis Q for the cuboid lattice can be related to that for the cubic lattice that involves the following set of particle velocities so as to construct a modular LB scheme:
| e ¯ x = ( 0 , 1 , 1 , 0 , 0 , 0 , 0 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 0 , 0 , 0 , 0 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 ) ,
| e ¯ y = ( 0 , 0 , 0 , 1 , 1 , 0 , 0 , 1 , 1 , 1 , 1 , 0 , 0 , 0 , 0 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 ) ,
| e ¯ z = ( 0 , 0 , 0 , 0 , 0 , 1 , 1 , 0 , 0 , 0 , 0 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 ) .
Such a moment basis for the cubic lattice, referred to as P in the following obviously does not depend on the grid aspect ratios, and can be written as
P = [ | 1 , | e ¯ x , | e ¯ y , | e ¯ z , | e ¯ x e ¯ y , | e ¯ x e ¯ z , | e ¯ y e ¯ z , | e ¯ x 2 , | e ¯ y 2 , | e ¯ z 2 , | e ¯ x e ¯ y 2 , | e ¯ x e ¯ z 2 , | e ¯ x 2 e ¯ y , | e ¯ y e ¯ z 2 , | e ¯ x 2 e ¯ z , | e ¯ y 2 e ¯ z , | e ¯ x e ¯ y e ¯ z , | e ¯ x 2 e ¯ y 2 , | e ¯ x 2 e ¯ z 2 , | e ¯ y 2 e ¯ z 2 , | e ¯ x 2 e ¯ y e ¯ z , | e ¯ x e ¯ y 2 e ¯ z , | e ¯ x e ¯ y e ¯ z 2 , | e ¯ x e ¯ y 2 e ¯ z 2 , | e ¯ x 2 e ¯ y e ¯ z 2 , | e ¯ x 2 e ¯ y 2 e ¯ z , | e ¯ x 2 e ¯ y 2 e ¯ z 2 ] .
It follows from the above definitions that Q and P matrices are related via
Q = S P ,
where S is a simple diagonal scaling matrix, and for the D3Q27 lattice, it can be expressed as
S = diag 1 , 1 , r , s , r , s , r s , 1 , r 2 , s 2 , r 2 , s 2 , r , r s 2 , s , r 2 s , r s , r 2 , s 2 , r 2 s 2 , r s , r 2 s , r s 2 , r 2 s 2 , r s 2 , r 2 s , r 2 s 2 .
Moreover, the inverse mapping for the cuboid lattice Q 1 can be related to that for the cubic lattice P 1 using
Q 1 = S 1 P 1 ,
where S 1 is another diagonal matrix whose elements are the reciprocals of the corresponding elements of S . Thus,
S 1 = diag ( 1 , 1 , r 1 , s 1 , r 1 , s 1 , r 1 s 1 , 1 , r 2 , s 2 , r 2 , s 2 , r 1 , r 1 s 2 , s 1 , r 2 s 1 , r 1 s 1 , r 2 , s 2 , r 2 s 2 , r 1 s 1 , r 2 s 1 , r 1 s 2 , r 2 s 2 , r 1 s 2 , r 2 s 1 , r 2 s 2 ) .
As we will see below, these considerations would facilitate the construction of the 3D cuboid LB schemes involving both forward and inverse transformations around collisions with effort similar to that for the common cubic lattice that is augmented with some simple scalings of moments based on r and s rather than using lengthy formulas. Next, using the simpler moment basis Q we can relate the vectors of the bare moments (i.e., without involving any linear combinations) and the distribution functions via
m = Q f , f = Q 1 m ,
based on which, we now list the countable raw moments for the D3Q27 lattice as follows:
m = ( k 000 , k 100 , k 010 , k 001 , k 110 , k 101 , k 011 , k 200 , k 020 , k 002 , k 120 , k 102 , k 210 , k 012 , k 201 , k 021 , k 111 , k 220 , k 202 , k 022 , k 211 , k 121 , k 112 , k 122 , k 212 , k 221 , k 222 ) .
and similarly, using m e q = Q f e q and Φ = Q S , we can write the respective equilibria and the source terms in the moment space as
m e q = ( k 000 e q , k 100 e q , k 010 e q , k 001 e q , k 110 e q , k 101 e q , k 011 e q , k 200 e q , k 020 e q , k 002 e q , k 120 e q , k 102 e q , k 210 e q , k 012 e q , k 201 e q , k 021 e q , k 111 e q , k 220 e q , k 202 e q , k 022 e q , k 211 e q , k 121 e q , k 112 e q , k 122 e q , k 212 e q , k 221 e q , k 222 e q ) ,
Φ = ( σ 000 , σ 100 , σ 010 , σ 001 , σ 110 , σ 101 , σ 011 , σ 200 , σ 020 , σ 002 , σ 120 , σ 102 , σ 210 , σ 012 , σ 201 , σ 021 , σ 111 , σ 220 , σ 202 , σ 022 , σ 211 , σ 121 , σ 112 , σ 122 , σ 212 , σ 221 , σ 222 ) .
Here, the components of the raw moments, their equilibria and the source moments k m n p , k m n p e q , and σ m n p , respectively, are defined in Equation (6).
With these preliminaries, we now rewrite the LBE given in Equation (8) and use f = T 1 n in terms of the following collide-and-stream steps with the goal of constructing an efficient LB algorithm on the cuboid lattice:
f ˜ ( x , t ) = T 1 n + Λ n e q n + I Λ 2 Ψ Δ t ,
f ( x + e Δ t , t + Δ t ) = f ˜ ( x , t ) .
Note that here and in what follows, we use ‘tilde’ ( · ˜ ) to refer to the post-collision state of any variable. Then, we combine Equations (7) and (58), i.e., to relate the sets of moments m and n as n = T f = T Q 1 m , and, similarly, Φ and Ψ as Φ = T Q 1 Ψ . Substituting these expressions for n and Ψ and eliminating the use of the problematic T in favor of Q via T = B Q (see Equation (51)) in Equation (62), the post-collision vector f then modifies to
f ˜ ( x , t ) = ( B Q ) 1 T Q 1 m + Λ T Q 1 m e q m + I Λ 2 T Q 1 Φ Δ t .
Exploiting the fact that T Q 1 = B and ( B Q ) 1 = Q 1 B 1 based on their definitions, and then performing the product of B 1 with the resulting terms inside the brackets [ ] in the above Equation (64) and invoking B 1 B = I , it follows that
f ˜ ( x , t ) = Q 1 m + B 1 Λ B m e q m + B 1 I Λ 2 B Φ Δ t .
As a further simplification, in order to bring this above LB formulation for the cuboid lattice (Equation (65)) closer to that for the common cubic lattice, we replace the transformations based on Q in terms P via Equation (54), i.e., Q = S P and Q 1 in terms P 1 using Equation (56), i.e., Q 1 = P 1 S 1 . Thus, using these in Equation (65) and writing the change in moments under collision as B 1 Λ B m e q m = B 1 Λ B m e q B m , the equation for the post-collision vector f reduces finally to
f ˜ ( x , t ) = P 1 S 1 m + B 1 Λ B m e q B m + B 1 I Λ 2 B Φ Δ t .
Evidently, the linear combinations of moments B and their inverse operation to retrieve the individual bare moments via B 1 are now confined just around the steps in determining the changes due to collision in terms of moments only and not for any mappings to or from the velocity space, which are handled by operations similar to those for the cubic lattice augmented with simple scalings of moments based on the grid aspect ratios. These aspects greatly simplify the implementation of the cuboid LB algorithm.
Noting that the terms within the brackets [ ] in Equation (66) correspond to the post-collision raw moments, which we write as m ˜ = m + B 1 Λ B m e q B m + I Λ 2 B Φ Δ t , where the pre-collision raw moments m can be obtained from the distribution functions f via m = S P f , we can finally obtain the following equivalent but significantly more efficient cuboid LB formulation of that given in Equations (62) and (63) based on raw moments:
m = S P f , m ˜ = m + B 1 Λ B m e q B m + I Λ 2 B Φ Δ t , f ˜ ( x , t ) = P 1 S 1 m ˜ , f ( x + e Δ t , t + Δ t ) = f ˜ ( x , t ) .
Note that when we discuss the implementation details of each of the steps involved, we will write down the explicit details of performing P and P 1 related to mappings between the raw moments and distribution functions (which can be readily constructed based on the usual cubic lattice), S and S 1 related to scalings of raw moments by the grid aspect ratios, and B and B 1 related to combining and segregating the moments around the collision steps involving the relaxation process and augmented by the source terms.
As discussed in the introduction earlier, schemes constructed using the central moments have been shown to be more robust than those based on raw moments. Hence, a natural generalization of the above is to consider next in using the central moments in lieu of the raw moments in performing the collision step. In this regard, we first list the countable central moments m c and their equilibria m c , e q as well as the source central moments Φ c for the D3Q27 lattice as follows:
m c = ( k 000 , k 100 , k 010 , k 001 , k 110 , k 101 , k 011 , k 200 , k 020 , k 002 , k 120 , k 102 , k 210 , k 012 , k 201 , k 021 , k 111 , k 220 , k 202 , k 022 , k 211 , k 121 , k 112 , k 122 , k 212 , k 221 , k 222 ) ,
m c , e q = ( k 000 e q , k 100 e q , k 010 e q , k 001 e q , k 110 e q , k 101 e q , k 011 e q , k 200 e q , k 020 e q , k 002 e q , k 120 e q , k 102 e q , k 210 e q , k 012 e q , k 201 e q , k 021 e q , k 111 e q , k 220 e q , k 202 e q , k 022 e q , k 211 e q , k 121 e q , k 112 e q , k 122 e q , k 212 e q , k 221 e q , k 222 e q ) ,
Φ c = ( σ 000 , σ 100 , σ 010 , σ 001 , σ 110 , σ 101 , σ 011 , σ 200 , σ 020 , σ 002 , σ 120 , σ 102 , σ 210 , σ 012 , σ 201 , σ 021 , σ 111 , σ 220 , σ 202 , σ 022 , σ 211 , σ 121 , σ 112 , σ 122 , σ 212 , σ 221 , σ 222 ) ,
where the components of the central moment components k m n p , k m n p e q , and σ m n p , respectively, are defined in Equation (5). We note that the mappings between the central moments and raw moments can be accomplished via the frame transformation matrix F and its inverse F 1 as
m c = F m , m = F 1 m c .
Here, F and F 1 are both lower triangular matrices dependent on the fluid velocity components ( u x , u y , u z ) and are the same for the cuboid lattice as well as the cubic lattice. The elements of F can be readily obtained by listing the binomial transforms of all the linearly independent central moments for the D3Q27 lattice in terms of the raw moments and collecting them in a matrix–vector representation.
As noted in our recent work on the rectangular central moment LB scheme [26], once F = F ( u x , u y , u z ) is known, its inverse follows from it by exploiting an interesting property of the generating function representation of the binomial expansion, which involves simply reversing the signs of the velocity components appearing in F , i.e., F 1 = F ( u x , u y , u z ) .
Then, as an extension of Equation (66), the changes under collision as well as the source term in the LBE can be prescribed in terms of central moments, and the resulting post-collision central moments are then mapped back to raw moments via F 1 , which leads to the following equation for the post-collision vector f :
f ˜ ( x , t ) = P 1 S 1 F 1 m c + B 1 Λ B m e q , c B m c + B 1 I Λ 2 B Φ c Δ t .
In view of Equation (72), we can write the 3D cuboid central moment LB method (3DCCM-LBM) as a generalization of the previous raw moment formulation given in Equation (67) as follows:
m c = F S P f , m ˜ c = m c + B 1 Λ B m c , e q B m c + I Λ 2 B Φ c Δ t , f ˜ ( x , t ) = P 1 S 1 F 1 m ˜ c , f ( x + e Δ t , t + Δ t ) = f ˜ ( x , t ) .
The expressions associated with F and F 1 in addition to the other matrices will be written explicitly when we discuss the implementation details of the central moment LB scheme for the cuboid lattice next.

3.2. Algorithmic Details of the 3DCCM-LBM

We will now discuss the implementation details of the 3DCCM-LBM based on Equation (73). While the main steps will be identified systematically in the following, the formulas associated with each of steps will be presented in respective appendices.
  • Compute pre-collision raw moments
    m = P f ,
    where P is given in Equation (53), and the components of f , i.e., f α are at time level t, i.e., f α = f α ( x , t ) . This provides intermediate values for all the pre-collision raw moments k m n p for the D3Q27 cubic lattice. The implementation of this step is given in Appendix A.
  • Perform scaling of pre-collision raw moments for a cuboid lattice
    m S m ,
    where S is given in Equation (55), and this step yields the pre-collision raw moments for the cuboid lattice k m n p from those for the cubic lattice computed in the previous step. The equations representing this operation is presented in Appendix B.
  • Compute the pre-collision central moments
    m c = F m ,
    where F transforms the pre-collision raw moments k m n p into central moments k m n p , and the associated details are listed in Appendix C.
  • Compute the post-collision central moments: Relaxation under collision using extended equilibria for corrections and sources for body force
    m ˜ c = m c + B 1 Λ B m c , e q B m c + I Λ 2 B Φ c Δ t .
    Here, we obtain the post-collision central moments k ˜ m n p as a result of the relaxation of the central moments to their effective equilibria and augmented with source terms due to the body force. The details on the effective central moment equilibria accounting for the corrections due to grid anisotropy and non-GI velocity errors using the results from Section 2.5, the selection of the relaxation parameters appearing in Λ and how certain moments are combined and segregated prior to and after the relaxation step under collision as required via B and B 1 are given in Appendix D.
  • Compute post-collision raw moments
    m ˜ = F 1 m ˜ c .
    The expressions for the mappings of the post-collision central moments k ˜ m n p to raw moments k ˜ m n p performed via the inverse frame transformation matrix F 1 are provided in Appendix E.
  • Perform inverse scaling of post-collision raw moments for the cuboid lattice
    m ˜ S 1 m ˜ .
    This scales down the post-collision raw moments k ˜ m n p and facilitates their more efficient transformation to distribution functions via the moment basis for the cubic lattice P 1 in the next step. Here, the inverse of the scaling matrix, i.e., S 1 is presented in Equation (57), and the operations involved in this step are listed in Appendix F.
  • Compute the post-collision distribution functions
    f ˜ = P 1 m ˜ ,
    where the computations involved in the inverse of the simpler moment basis P is given in Equation (53) are shown in Appendix G.
  • Perform streaming of distribution functions
    f α ( x , t + Δ t ) = f ˜ α ( x e α Δ t , t ) .
  • Update hydrodynamic fields
    Using f α ( x , t + Δ t ) at the new time level t + Δ t from the previous step, the fluid density and velocities can be obtained as
    ρ = α = 0 26 f α , ρ u = α = 0 26 f α e α + 1 2 F Δ t .
The following comments regarding the algorithm given above are now in order.
(i) When compared to the central moment LB scheme for the common D3Q27 cubic lattice, we emphasize that the only extra computations incurred by the above discussed method for the D3Q27 cuboid lattice are those involving the corrections in the diagonal components of the second order moments in the collision step and the applications of scalings on the raw moments before and after the collision step (i.e., S and S 1 ); these result in a minor additional overhead, but as will be demonstrated in the simulations of an inhomogeneous and anisotropic shear flow case study later, it will be offset by far due to the overall significant computational advantages of using the cuboid lattice in lieu of the cubic lattice that accommodates the nature of the flow much more efficiently.
(ii) The algorithm given above based on central moments is modular in nature. It can be readily extended to other collision models. For example, a raw moment-based cuboid scheme as a modification of the above would simply involve the elimination of the mappings between the raw moments and central moments (i.e., those involving F and F 1 ) around collision and performing the collision step in terms of raw moments rather than central moments, but using the same corrections via the extended moment equilibria.
However, as will be numerically shown later, the central moment formulation is more robust than that based on raw moments for the cuboid lattice. Schemes based on other collision models, such as those based on cumulants [28] can be readily constructed from the above algorithm by introducing additional mappings between central moments and cumulants and performing the collision step in terms of relaxations of cumulants by using the same required corrections for the cuboid lattice as in the above algorithm. Such an extension can be considered in a future study.
(iii) Finally, the present approach devised for the D3Q27 cuboid lattice readily extends to other lattice sets, such as D3Q15 and D3Q27 cuboid lattices, by using only a subset of the moment basis as necessary while incorporating the corrections to the equilibria derived in this work.

4. Boundary Conditions on Moving Walls: Momentum-Augmented Bounce Back Scheme on Cuboid Lattice Grids

Before discussing the numerical results based on the 3DCCM-LBM constructed above, we note that the use of cuboid lattice requires some modifications to the implementation of the standard link-based half-way bounce back boundary condition for moving boundaries. Since we will be investigating shear driven flows due to the motion of the walls in this work, we will now derive the necessary changes to such a boundary scheme. If x f and x w represent the fluid node nearest to the boundary and the wall node, respectively, and α and α ¯ denote, respectively, the outgoing and incoming particle directions, where e α ¯ = e α , then the general form of the momentum-augmented half-way bounce back scheme can be written as
f α ¯ ( x f , t + Δ t ) = f ˜ α ( x f , t ) f α e q ( x w ) f α ¯ e q ( x w ) .
Here, the equilibrium distribution functions f α e q and f α ¯ e q associated with f e q at x w depend on the wall density and velocities. It can be obtained via an inverse mapping from the equilibrium moments m e q using f e q = Q 1 m e q , where the components of the equilibrium moments are evaluated using Equation (11) from those based on the imposed wall conditions. Note that since Q 1 is dependent on the grid aspect ratios, the resulting formulas will be parameterized by r and s. Specifically, consider a moving boundary located in the x z plane, whose outward normal is along the y direction and pointing into the plane of the paper (see Figure 1).
Let this boundary plane be moving along the x direction with an imposed velocity U; thus, based on the no-slip boundary conditions for the fluid, we can then write u x = U , u y = 0 , u z = 0 , and, as usual for the bounce back scheme, we approximate the wall node density to that based on the known fluid, i.e., ρ = ρ f . For the case under consideration, referring to Figure 1, the unknown or incoming distribution functions are f α ¯ , where α ¯ = 4 , 9 , 10 , 16 , 18 , 21 , 22 , 25 , 26 , and can be written in terms of the known directions using Equation (74) as
f 4 ( x f , t + Δ t ) = f ˜ 3 ( x f , t ) f 3 e q ( x w ) f 4 e q ( x w ) , f 9 ( x f , t + Δ t ) = f ˜ 8 ( x f , t ) f 8 e q ( x w ) f 9 e q ( x w ) , f 21 ( x f , t + Δ t ) = f ˜ 24 ( x f , t ) f 24 e q ( x w ) f 21 e q ( x w ) , f 10 ( x f , t + Δ t ) = f ˜ 7 ( x f , t ) f 7 e q ( x w ) f 10 e q ( x w ) , f 22 ( x f , t + Δ t ) = f ˜ 23 ( x f , t ) f 23 e q ( x w ) f 22 e q ( x w ) , f 16 ( x f , t + Δ t ) = f ˜ 17 ( x f , t ) f 17 e q ( x w ) f 16 e q ( x w ) , f 25 ( x f , t + Δ t ) = f ˜ 20 ( x f , t ) f 20 e q ( x w ) f 25 e q ( x w ) , f 18 ( x f , t + Δ t ) = f ˜ 15 ( x f , t ) f 15 e q ( x w ) f 18 e q ( x w ) , f 26 ( x f , t + Δ t ) = f ˜ 19 ( x f , t ) f 19 e q ( x w ) f 26 e q ( x w ) .
Then, we determine the expressions of the known equilibrium distribution functions using f e q = Q 1 m e q , where we evaluate the components of the moment equilibria on the wall via Equation (11) based on the imposed wall conditions mentioned above. Using these, we then finally obtain the momentum-augmented bounce-back scheme for the cuboid lattice as
f 4 ( x f , t + Δ t ) = f ˜ 3 ( x f , t ) , f 16 ( x f , t + Δ t ) = f ˜ 17 ( x f , t ) , f 21 ( x f , t + Δ t ) = f ˜ 24 ( x f , t ) + c s 4 4 r 2 s 2 ρ U , f 18 ( x f , t + Δ t ) = f ˜ 15 ( x f , t ) , f 22 ( x f , t + Δ t ) = f ˜ 23 ( x f , t ) c s 4 4 r 2 s 2 ρ U , f 9 ( x f , t + Δ t ) = f ˜ 8 ( x f , t ) ( c s 2 s 2 ) c s 2 2 r 2 s 2 ρ U , f 25 ( x f , t + Δ t ) = f ˜ 24 ( x f , t ) + c s 4 4 r 2 s 2 ρ U , f 10 ( x f , t + Δ t ) = f ˜ 7 ( x f , t ) + ( c s 2 s 2 ) c s 2 2 r 2 s 2 ρ U , f 26 ( x f , t + Δ t ) = f ˜ 19 ( x f , t ) c s 4 4 r 2 s 2 ρ U .
Clearly, the formulas given in Equation (75), which will be utilized in the next section, depend on the grid aspect ratios r and s in addition to the specified wall velocity U.

5. Results and Discussion: Numerical Validation

In this section, we will perform numerical validations of our new 3D cuboid central moment LBM via simulations of an assortment of canonical fluid flow problems, including flows in square ducts, pulsatile flows in a square duct driven by a periodic body force, and lid-driven flows within a cubic cavity at various characteristic parameters and grid aspect ratios.

5.1. Flow through a Square Duct Driven by a Constant Body Force

First, we perform simulations of a fully developed flow through a square duct driven by a constant body force using the 3DCCM-LBM. The analytical solution of this flow problem for the velocity field u ( y , z ) can be written as [48]
u ( y , z ) = 4 L 2 F x π 3 ρ ν n = 1 , 3 , 5 , . . . ( 1 ) ( n 1 / 2 ) 1 cosh ( n π z / L ) cosh ( n π / 2 ) cos ( n π y / L ) n 3 ,
where L represents the side of the square duct, ν is the kinematic viscosity and F x is the body force imposed in the direction of the fluid flow, the x-direction. We resolve the computational domain using N x × N y × N z grid nodes, and the grid aspect ratios in the y and z directions, i.e., r and s, respectively, are then calculated using r = L / N y and s = L / N z .
A periodic boundary condition is applied along the flow direction (x-direction), and no slip boundary conditions at the four side walls are imposed using the half-way bounce back boundary conditions (see e.g., Equation (75)). We define the Reynolds number Re for this flow based on the maximum flow velocity occurring at the midpoint within the duct cross section and the duct side length as the characteristic velocity and length scales, respectively. Table 1 presents a list of the model parameters used for different combinations of the aspect ratios r and s for flow simulations at L = 30 and Re = 50 , including the choices for the body force, speed of sound c s , and the relaxation time τ = 1 / ω ν that specifies the viscosity ν .
As an example of the results obtained, Figure 2 shows the comparisons of the velocity profiles computed using 3DCCM-LBM with r = 0.5 and s = 0.33 along the z direction for four different selected locations in the y direction. Excellent agreement can be seen between the computed results using the cuboid lattice and the analytical solution. Moreover, though not shown in this figure, the 3DCCM-LBM results were also found to be in similar agreements with the exact solution for all the other cases of the grid aspect ratios tested according to Table 1.
We note here that, due to the similarity of the governing equations for this Stokes flow problem with the anisotropic advection diffusion equation (ADE), it can be alternatively solved by the LBMs developed in this regard by Ginzburg. [49,50] via a coordinate grid transform, as in e.g., [51,52], for which the role of the associated anisotropy on the numerical stability was studied in [53]. More generally, the idea of the coordinate grid transform used for the ADE LBM may also be adopted for flow LBM.

5.2. Pulsatile Flow in a Square Duct Driven by a Periodic Body Force

Next, we will assess the ability of the 3DCCM-LBM in accurately representing a time-dependent flow problem for which an analytical solution is available. In this regard, we simulate time-periodic flow through a square duct of side length 2 a driven by a sinusoidally varying body force F x = F m cos ω t , where F m is its peak amplitude and ω = 2 π / T is the angular frequency of the applied pulsations and with T being its time period. This case study admits an analytical solution for the spatially and temporally varying velocity field based on Fourier series and given by [54]
u ( y , z , t ) = R F m ω 1 2 n = 0 ( 1 ) n p n cosh ( γ n y / a ) cos ( p n z / a ) cosh ( γ n ) + cosh ( γ n z / a ) cos ( p n y / a ) cosh ( γ n ) e i ω t , γ n = p n 2 + i Wo 2 , p n = ( 2 n + 1 ) π / 2 .
where a y , z a and R [ ] represents the real part of the terms within the brackets. Here, Wo is referred to as the Womersley number and defined by Wo = a ω / ν , which is an indication of the ratio of the flow time scale due to viscous diffusion and the time scale of the variations of the imposed force. Considering 2 a = 40 , F m = 1 × 10 5 and T = 10 , 000 , we simulated this flow at two different values of the Womersley number, Wo = 3.09 and Wo = 6.25 .
For a grid resolution of N x × N y × N z the grid aspect ratios r and s are chosen via r = 2 a / N y and s = 2 a / N z . We considered three different choices for the grid resolution, viz., 40 × 80 × 40 , 40 × 80 × 80 , and 40 × 160 × 80 using the cuboid lattice, which correspond to the cases with ( r , s ) = ( 0.5 , 1.0 ) , ( r , s ) = ( 0.5 , 0.5 ) , and ( r , s ) = ( 0.25 , 0.5 ) , respectively. Figure 3 presents the velocity profiles at different instants within the time period T computed using 3DCCM-LBM and compared with the analytical solution (Equation (77)). The computed results obtained using the cuboid lattice for all choices and combinations of the grid aspect ratios are in very good agreement with the analytical solution at any given instant in time.
In addition, Figure 4 and Figure 5 show the computed velocity distributions for the entire cross section of the duct obtained using ( r , s ) = ( 0.5 , 1.0 ) , ( r , s ) = ( 0.5 , 0.5 ) , and ( r , s ) = ( 0.25 , 0.5 ) for Wo = 3.09 and Wo = 6.25 , respectively, at the time instant t = T , which compare well with those given by the exact solution. These results provide evidence that the 3DCCM-LBM can perform relatively accurate numerical computations of temporally varying flows.

5.3. 3D Lid-Driven Shear Flow in a Cubic Cavity

Finally, we investigate our 3DCCM-LBM for simulating a fully 3D shear flow case with complex flow features for which only some prior benchmark numerical solutions are available. In this regard, we consider the motion of the fluid enclosed within a cubic cavity of side length H driven by the motion of the top lid located parallel to the x z plane at y = H at a velocity U along the x direction. Such a shear-driven flow involves circulation patterns with 3D vortical structures whose details depend on the Reynolds number Re defined as Re = U H / ν [55].
In this paper, we will perform simulation of this flow at Re = 100 , 400 , and 1000 for which the reference numerical solutions for benchmarking can be found from various prior studies (see e.g., [56,57,58]). For applying the 3DCCM-LBM in this regard, we used the following three different grid aspect ratios r = 1.0 , 0.5 , 0.33 and s = 1 , so that the resolutions are selectively varied only along the y direction which is normal to the shearing motion of the top lid. The choices made for the various parameters for each set of grid aspect ratios, including the number of grid nodes, lid velocity, speed of sound, and the relaxation time τ = 1.0 / ω ν , are presented in Table 2.
The no-slip boundary conditions are implemented using the half-way bounce back scheme; in particular, for representing the effect of the moving top lid, we impose the momentum-augmented corrections, which are parameterized by the grid aspect ratios as shown in Equation (75). Figure 6 presents the steady state velocity profiles of the horizontal velocity component u and the vertical velocity component v along the vertical and horizontal geometric centerlines, respectively, in the mid x y plane at z = 0.5 H at a fixed Reynolds number Re = 100 and using the 3DCCM-LBM with three different grid aspect ratios as indicated in Table 2 earlier.
Here, we compared them with the benchmark numerical solution based on the method of differential quadrature to solve the incompressible NS equation in Shu et al. [58]. It is evident that our 3D central moment LBM based on the cuboid lattice is in very good agreement with the reference numerical data.
Moreover, Figure 7 shows the comparisons made for the velocity profiles at a fixed grid aspect ratios of r = 0.5 and s = 1.0 for three different Reynolds numbers of 100, 400, and 1000. Our 3DCCM-LBM is able to reproduce the reference results quite well for all the values of Re considered. Thus, the use of the extended moment equilibria involving the correction terms in our LB algorithm effectively eliminates the anisotropy associated with the use of the cuboid lattice and computes solutions that are fully consistent with the 3D NS equations.
In addition, for visualizing the overall flow patterns, the streamlines along the mid- x y plane, x z plane and y z plane of the cubic cavity at Re = 100 , 400, and 1000 computed using r = 0.5 and s = 1 are presented in Figure 8.
The motion of the lid normal to the y direction is seen to set up a major vortex in x y plane whose size and its center location appear to significantly change as the Reynolds number is varied. In particular, the eye of this vortex moves towards the center in the x y plane as Re increases. Meanwhile, some secondary vortices start to form around the corners at higher Re and grow in size with increase in the inertial effects as the Reynolds number is increased. The three-dimensionality of the resulting flow field is evident from observing the other y z and x z planes in these figures. These features are in agreement with the prior numerical solutions [56,57,58].

6. Demonstration of Computational Advantages of Using Cuboid Lattice over Cubic Lattice: 3D Anisotropic Shear Flows in a Lid-Driven Shallow Cuboid Cavity

The results from the above case studies show the ability of our 3DCCM-LBM in computing the flow fields accurately for a variety of standard benchmark flow problems. Now, we will demonstrate the advantages of using the cuboid lattice over the cubic lattice in more efficiently simulating a flow case study characterized by an anisotropic and inhomogeneous shear flow where their spatial gradients in one or more direction are larger than those in the other directions. In this regard, we consider a 3D cuboid cavity of span length L in the x direction, height H in the y direction, and width W in the z direction enclosing a fluid of viscosity ν . A flow is set up by the shearing motion of the lid located in the x z plane at y = H at a velocity U (see Figure 9).
In particular, we choose the span-to-height ratio L / H = 4 , and width-to-height ratio W / H = 2 so that the cavity block is relatively shallow in nature, and the flow generated by this set up is inhomogeneous and anisotropic, with the spatial gradients along the y direction that is normal to the direction of shear expected to be larger than those in the x and z directions. If N x × N y × N z represent the total number of grid nodes resolving the flow domain, the grid space steps in each of the directions are given by Δ x = L / N x , Δ y = H / N y , and Δ z = W / N z .
In the case of using a cubic lattice, they are constrained by the uniform grid spacing requirement, i.e., Δ x = Δ y = Δ z , which fixes the number of grid points in each coordinate direction according to the length dimension of the cuboid cavity in that direction, i.e., N x / L = N y / H = N z / W . As an example, we consider a flow at a Reynolds number R e = U L / ν = 100 within this cavity block, and choose the number of grid nodes in the y direction normal to the shear as N y = 64 . Based on the above considerations, for the cubic lattice, we obtain N x = 256 and N z = 128 , and hence the total number of grid nodes in this case is 256 × 64 × 128 .
On the other hand, when the cuboid lattice is used Δ y = r Δ x and Δ z = s Δ x = ( s / r ) Δ y , so that N x = r ( L / H ) N y and N z = ( 1 / s ) ( W / L ) N x = ( r / s ) ( W / H ) N y . Taking N y = 64 again along the direction normal to the shearing motion of the lid, for the purpose of illustration, we consider the following three different possibilities for the grid aspect ratios along with the corresponding resolution requirements in the x and z directions: (i) ( r , s ) = ( 0.406 , 1.3 ) with ( N x , N z ) = ( 104 , 40 ) , (ii) ( r , s ) = ( 0.375 , 0.75 ) with ( N x , N z ) = ( 96 , 64 ) , and (iii) ( r , s ) = ( 0.375 , 1.0 ) with ( N x , N z ) = ( 96 , 48 ) .
Thus, the total number of grid nodes with using the cuboid lattice for the above three cases are 104 × 64 × 40 , 96 × 64 × 64 , and 96 × 64 × 48 , respectively. Clearly, the resolution requirements with using the cubic lattice involving the same grid size in all the directions are significantly greater than those with using the choices made above with the flexible cuboid lattice that can more naturally conform with the flow characteristics. For performing flow simulations, we choose c s 2 = 1 / 3 for the cubic lattice and c s 2 = 0.04 for the cuboid lattice.
Figure 10 presents comparisons of the velocity profiles of the u component along the y direction at x = 0.5 L and z = 0.5 W , and v component along the x direction at y = 0.5 H and z = 0.5 W obtained using the 3DCCM-LBM with the above three sets of grid aspect ratios for the cuboid lattice and the cubic lattice with ( r , s ) = ( 1.0 , 1.0 ) . Moreover, the streamlines along the three mid-planes of the 3D shallow cuboid cavity using both the cubic lattice and the cuboid lattice using the grid aspect ratios for the case (i) (corresponding to that with the lowest total number of grid points among the three cuboid lattice cases) are shown in Figure 11.
Clearly, the cuboid lattice results, while using significantly fewer total number of grid nodes, are in excellent agreement with those using the cubic lattice. In particular, to achieve practically similar accuracy for the numerical results, the flexibility accorded by the cuboid lattice yielded significant savings in the computer memory storage by a factor of 7.88 , 5.33 , and 7.11 for cases (i), (ii), and (iii), respectively, and about similar reductions in the computational cost for the simulation turnaround time when compared to the cubic lattice.
While, for the specific flow configuration considered here, a reduction in the computational resource requirements by a factor between 5 to 7.5 was achieved for the choices made for the grid aspect ratios, if the flow geometry happens to be further skewed in the different coordinate directions, e.g., when H / L 1 and/or H / W 1 , additional improvements with using the cuboid lattice can be expected for simulating such anisotropic shear flow problems.

7. Numerical Stability Test Results of Raw Moment and Central Moment Based LB Algorithms on the D3Q27 Cuboid Lattice

The algorithmic details given in Section 3.2 are general and readily extend to other collision models. For example, if instead of central moments, the raw moments are used in performing the relaxations under collision with the same corrections in the equilibria as before and omitting the steps involving the mappings between the central moments and raw moments (i.e., involving F and F 1 ), the algorithm reduces to a 3D cuboid raw moment LBM, which is referred to as the 3DCRM-LBM in what follows.
Such a 3DCRM-LBM would be significantly better than other prior 3D cuboid LB raw moment based formulations, as it avoids the orthogonalization of the moment basis, uses better forms of the equilibria obtained from matching with those of the continuous Maxwell distribution function and the elimination of the non-GI cubic velocity errors, and has simpler expressions for the corrections and transport coefficients. However, it would be interesting to see how the resulting 3DCRM-LBM compares with the 3DCCM-LBM based on central moments that has been used as the method of choice in this work and validated in detail earlier.
While the 3DCRM-LBM incurs a slightly lower computational cost than the 3DCCM-LBM because of the absence of the additional mappings indicated above, the 3DCCM-LBM, which executes the collision step in the local moving frame of reference, is expected to be more robust with better numerical stability characteristics in simulating shear flows at larger characteristic velocities or lower viscosities than the 3DCRM-LBM, as observed in the recent 2D studies involving square [31] and rectangular [26] lattice sets.
Let us verify if this is indeed observed in 3D simulations of the lid-driven cubic cavity flow using the cuboid lattice. In this regard, we first perform a stability test in which, for a chosen grid resolution (or the grid aspect ratio), and by varying the relaxation parameter ω ν controlling the shear viscosity, we determine the maximum possible lid velocity U, i.e., U m a x that maintains stable simulation for 100,000 steps in each case. We chose two different grid resolutions of 30 × 40 × 30 and 30 × 60 × 30 corresponding to the grid ratios of r = 0.75 and s = 1.0 and r = 0.5 and s = 1.0 , respectively.
In both cases, we use c s 2 = 0.08 , which is the minimum of the optimal values for the two grid aspect ratios, in order to have the same reference speed of sound in calculating the Mach number. All the relaxation parameters, other than that for the shear viscosity, are set to 1.0 for simplicity. The results are shown in Figure 12. Clearly, the 3DCCM-LBM is able to support larger magnitudes of shear consistently than the 3DCRM-LBM for all the choices of the grid resolution used.
Moreover, it was pointed out earlier that, in our 3D cuboid LB algorithms, the trace of the diagonal components of the second order moments is evolved separately from the other moments with its own relaxation parameter ω ξ after applying B , and the individual components are subsequently recovered via applying B 1 , so that the bulk viscosity can be specified independently from shear viscosity.
It is known that, for the common LB schemes based on the cubic lattice sets, a higher value of the bulk viscosity (via decreasing ω ξ ) enhances stability by suppressing the spurious pressure waves. We will now verify if this also holds true for the cuboid LB formulation based on central moments. Repeating the stability test mentioned above by choosing ω ξ = 0.5 , 1.0 , and 1.4 at 30 × 60 × 30 and c s 2 = 0.08 , Figure 13 shows the resulting maximum threshold velocity of the lid U for numerical stability. This figure clarifies that the robustness of the 3DCCM-LBM is significantly improved by choosing lower ω ξ or higher bulk viscosity.
In addition, we now perform a different type of stability study, where the grid resolution and lid velocity are fixed, and the lowest possible shear viscosity or the maximum Reynolds number that maintains stable simulations for 3DCCM-LBM and 3DCRM-LBM are determined. In this regard, we set U = 0.2 , c s 2 = 0.08 , r = 0.5 , and s = 1.0 , and three different choices of the grid resolutions, 40 × 80 × 40 , 50 × 100 × 50 , and 90 × 180 × 90 , are used to determine the maximum Reynolds number. As shown in Figure 14, the central moment formulation is found to be more stable and allows larger Reynolds number than that due to the raw moment formulation, which again support the superior numerical characteristics of the 3DCCM-LBM in simulating shear flows on the cuboid lattice.

8. Summary and Conclusions

In this paper, we presented a new 3D LB algorithm based on the central moments for the D3Q27 lattice using a cuboid grid, which is parameterized by two grid aspect ratios that are related to the ratios of the particle speeds with respect to that along a reference coordinate direction. The additional degrees of freedom introduced by the flexible specification of the cuboid lattice grid enable the method to naturally and more efficiently compute flows with different characteristic length scales in different directions. This was constructed to simulate the Navier–Stokes equations consistently via introducing counteracting corrections to the second order moment equilibria that eliminate the associated grid anisotropy and the non-Galilean invariant third order velocity errors obtained via a Chapman–Enskog analysis.
Such corrections are related to the diagonal components of the velocity gradient tensor and are computed locally using non-equilibrium moments in our approach and depend on the grid aspect ratios. The implementation is shown to be compact and modular with an interpretation based on special matrices, admitting ready extension of the standard algorithm for the cubic lattice to the cuboid lattice via the appropriate scaling of moments based on the grid aspect ratios before and after the collision step and equilibria corrections.
The resulting formulation is general in that the same grid corrections developed for the D3Q27 lattice for recovering the correct viscous stress tensor is applicable for other lattice subsets and a variety of collision models, including those based on the relaxation of raw moments, central moments and cumulants, as well as their special case involving the distribution functions. The cuboid central moment LBM was validated against a variety of benchmark flows, and when used in lieu of the corresponding raw moment formulation for simulating shear flows, we show that it resulted in significant improvements in numerical stability.
Finally, we demonstrated that our cuboid LB approach is efficient in simulating anisotropic shear flow problems with significant savings in computational cost and memory storage when compared to that based on the cubic lattice. Future improvements are expected by extending the present formulation as a multiblock cuboid LB algorithm, which will be considered in a future study.

Author Contributions

Conceptualization, K.N.P.; Methodology, K.N.P., E.Y. and W.S.; Formal Analysis, K.N.P. and E.Y.; Investigation, K.N.P., E.Y. and W.S.; Validation, E.Y.; Software, E.Y. and W.S.; Visualization, E.Y. and W.S.; Data Curation, E.Y.; Funding Acquisition, K.N.P.; Supervision, K.N.P.; Project Administration, K.N.P.; Writing—Original draft preparation, K.N.P., E.Y. and W.S.; Writing—Reviewing and Editing, K.N.P. All authors have read and agreed to the published version of the manuscript.

Funding

The first author (E.Y.) thanks the Department of Mechanical Engineering at the University of Colorado Denver for financial support. The second (W.S.) and third (K.N.P.) authors would like to acknowledge the support of the US National Science Foundation (NSF) under Grant CBET-1705630. The third author (K.N.P.) would like to also thank the NSF for support of the development of a computer cluster infrastructure through the project “CC* Compute: Accelerating Science and Education by Campus and Grid Computing” under Award 2019089.

Data Availability Statement

The data that support the findings of this study are available from the corresponding author upon reasonable request.

Acknowledgments

Parts of this work were presented virtually at the SIAM Conference on Computational Science and Engineering (CSE-21) in March 2021 and at the International Conference on Mesoscopic Methods in Engineering Science (ICMMES 2021) in July 2021.

Conflicts of Interest

The authors declare no conflict of interest.

Appendix A. Mapping Pre-Collision Distribution Functions to Raw Moments

The intermediate raw moments with respect to the moment basis for the D3Q27 cubic lattice computed from m = P f are expressed in the following. While the full expressions are shown in this appendix and all the ones that follow for better clarity, in actual implementations they should be optimized by grouping together the common sub-expressions when possible.
k 000 = f 0 + f 1 + f 2 + f 3 + f 4 + f 5 + f 6 + f 7 + f 8 + f 9 + f 10 + f 11 + f 12 + f 13 + f 14 + f 15 + f 16 + f 17 + f 18 + f 19 + f 20 + f 21 + f 22 + f 23 + f 24 + f 25 + f 26 , k 100 = f 1 f 2 + f 7 f 8 + f 9 f 10 + f 11 f 12 + f 13 f 14 + f 19 f 20 + f 21 f 22 + f 23 f 24 + f 25 f 26 , k 010 = f 3 f 4 + f 7 + f 8 f 9 f 10 + f 15 f 16 + f 17 f 18 + f 19 + f 20 f 21 f 22 + f 23 + f 24 f 25 f 26 , k 001 = f 5 f 6 + f 11 + f 12 f 13 f 14 + f 15 + f 16 f 17 f 18 + f 19 + f 20 + f 21 + f 22 f 23 f 24 f 25 f 26 , k 110 = f 7 f 8 f 9 + f 10 + f 19 f 20 f 21 + f 22 + f 23 f 24 f 25 + f 26 , k 101 = f 11 f 12 f 13 + f 14 + f 19 f 20 + f 21 f 22 f 23 + f 24 f 25 + f 26 , k 011 = f 15 f 16 f 17 + f 18 + f 19 + f 20 f 21 f 22 f 23 f 24 + f 25 + f 26 , k 200 = f 1 + f 2 + f 7 + f 8 + f 9 + f 10 + f 11 + f 12 + f 13 + f 14 + f 19 + f 20 + f 21 + f 22 + f 23 + f 24 + f 25 + f 26 , k 020 = f 3 + f 4 + f 7 + f 8 + f 9 + f 10 + f 15 + f 16 + f 17 + f 18 + f 19 + f 20 + f 21 + f 22 + f 23 + f 24 + f 25 + f 26 , k 002 = f 5 + f 6 + f 11 + f 12 + f 13 + f 14 + f 15 + f 16 + f 17 + f 18 + f 19 + f 20 + f 21 + f 22 + f 23 + f 24 + f 25 + f 26 , k 120 = f 7 f 8 + f 9 f 10 + f 19 f 20 + f 21 f 22 + f 23 f 24 + f 25 f 26 , k 102 = f 11 f 12 + f 13 f 14 + f 19 f 20 + f 21 f 22 + f 23 f 24 + f 26 f 26 , k 210 = f 7 + f 8 f 9 f 10 + f 19 + f 20 f 21 f 22 + f 23 + f 24 f 25 f 26 , k 012 = f 15 f 16 + f 17 f 18 + f 19 + f 20 f 21 f 22 + f 23 + f 24 f 25 f 26 , k 201 = f 11 + f 12 f 13 f 14 + f 19 + f 20 + f 21 + f 22 f 23 f 24 f 25 f 26 , k 021 = f 15 + f 16 f 17 f 18 + f 19 + f 20 + f 21 + f 22 f 23 f 24 f 25 f 26 , k 111 = f 19 f 20 f 21 + f 22 f 23 + f 24 + f 25 f 26 , k 220 = f 7 + f 8 + f 9 + f 10 + f 19 + f 20 + f 21 + f 22 + f 23 + f 24 + f 25 + f 26 , k 202 = f 11 + f 12 + f 13 + f 14 + f 19 + f 20 + f 21 + f 22 + f 23 + f 24 + f 25 + f 26 , k 022 = f 15 + f 16 + f 17 + f 18 + f 19 + f 20 + f 21 + f 22 + f 23 + f 24 + f 25 + f 26 , k 211 = f 19 + f 20 f 21 f 22 f 23 f 24 + f 25 + f 26 , k 121 = f 19 f 20 + f 21 f 22 f 23 + f 24 f 25 + f 26 , k 112 = f 19 f 20 f 21 + f 22 + f 23 f 24 f 25 + f 26 , k 122 = f 19 f 20 + f 21 f 22 + f 23 f 24 + f 25 f 26 , k 212 = f 19 + f 20 f 21 f 22 + f 23 + f 24 f 25 f 26 , k 221 = f 19 + f 20 + f 21 + f 22 f 23 f 24 f 25 f 26 , k 222 = f 19 + f 20 + f 21 + f 22 + f 23 + f 24 + f 25 + f 26 .

Appendix B. Scaling Pre-Collision Raw Moments by Grid Aspect Ratios

In order to obtain the pre-collision raw moments for the cuboid lattice from those for the cubic lattice, we scale the elements of the latter, i.e., k m n p by the grid aspect ratios using the factor r n s p for the moment of order ( m + n + p ) . Thus, the operations involving m S m can be written as follows:
k 000 = k 000 k 100 = k 100 k 010 = r k 010 , k 001 = s k 001 k 200 = k 200 k 102 = s 2 k 102 k 021 = r 2 s k 021 k 022 = r 2 s 2 k 022 k 122 = r 2 s 2 k 122 , k 110 = r k 110 k 020 = r 2 k 020 k 210 = r k 210 k 111 = r s k 111 k 211 = r s k 211 k 212 = r s 2 k 212 , k 101 = s k 101 k 002 = s 2 k 002 k 012 = r s 2 k 012 k 220 = r 2 k 220 k 121 = r 2 s k 121 k 221 = r 2 s k 221 , k 011 = r s k 011 k 120 = r 2 k 120 k 201 = s k 201 k 202 = s 2 k 202 k 112 = r s 2 k 112 k 222 = r 2 s 2 k 222 .

Appendix C. Mapping Pre-Collision Raw Moments to Central Moments

By writing the central moments for all the components for the D3Q27 lattice in terms of the raw moments via the binomial expansions, represented by m c = F m , the following expressions are obtained:
k 000 = k 000 ,
k 100 = k 100 u x k 000 ,
k 010 = k 010 u y k 000 ,
k 001 = k 001 u z k 000 ,
k 110 = k 110 u x k 010 u y k 100 + u x u y k 000 ,
k 101 = k 101 u x k 001 u z k 100 + u x u z k 000 ,
k 011 = k 011 u y k 001 u z k 010 + u y u z k 000 ,
k 200 = k 200 2 u x k 100 + u x 2 k 000 ,
k 020 = k 020 2 u y k 010 + u y 2 k 000 ,
k 002 = k 002 2 u z k 001 + u z 2 k 000 ,
k 120 = k 120 u x k 020 2 u y k 110 + 2 u x u y k 010 + u y 2 k 100 u x u y 2 k 000 ,
k 102 = k 102 u x k 002 2 u z k 101 + 2 u x u z k 001 + u z 2 k 100 u x u z 2 k 000 ,
k 210 = k 210 u y k 200 2 u x k 110 + u x 2 k 010 + 2 u x u y k 100 u x 2 u y k 000 ,
k 012 = k 012 u y k 002 2 u z k 011 + u z 2 k 010 + 2 u y u z k 001 u y u z 2 k 000 ,
k 201 = k 201 u z k 200 2 u x k 101 + u x 2 k 001 + 2 u x u z k 100 u x 2 u z k 000 ,
k 021 = k 021 u z k 020 2 u y k 011 + u y 2 k 001 + 2 u y u z k 010 u y 2 u z k 000 ,
k 111 = k 111 u x k 011 u y k 101 u z k 110 + u x u y k 001 + u x u z k 010 + u y u z k 100 u x u y u z k 000 ,
k 220 = k 220 2 u y k 210 2 u x k 120 + u x 2 k 020 + u y 2 k 200 + 4 u x u y k 110 2 u x 2 u y k 010 2 u x u y 2 k 100 + u x 2 u y 2 k 000 ,
k 202 = k 202 2 u z k 201 2 u x k 102 + u x 2 k 002 + u z 2 k 200 + 4 u x u z k 101 2 u x 2 u z k 001 2 u x u z 2 k 100 u x 2 u z 2 k 000 ,
k 022 = k 022 2 u z k 021 2 u y k 012 + u z 2 k 020 + u y 2 k 002 + 4 u y u z k 011 2 u y 2 u z k 001 2 u y u z 2 k 010 + u y 2 u z 2 k 000 ,
k 211 = k 211 2 u x k 111 u y k 201 u z k 210 + u x 2 k 011 + 2 u x u y k 101 + u y u z k 200 + 2 u x u z k 110 u x 2 u y k 001 u x 2 u z k 010 2 u x u y u z k 100 + u x 2 u y u z k 000 ,
k 121 = k 121 2 u y k 111 u x k 021 u z k 120 + u x u z k 020 + 2 u x u y k 011 + u y 2 k 101 + 2 u y u z k 110 u x u y 2 k 001 2 u x u y u z k 010 u y 2 u z k 100 + u x u y 2 u z k 000 ,
k 112 = k 112 2 u z k 111 u x k 012 u y k 102 + u x u y k 002 + 2 u x u z k 011 + 2 u y u z k 101 + u z 2 k 110 2 u x u y u z k 001 u x u z 2 k 010 u y u z 2 k 100 + u x u y u z 2 k 000 ,
k 122 = k 122 2 u y k 112 2 u z k 121 u x k 022 + 4 u y u z k 111 + 2 u x u z k 021 + 2 u x u y k 012 + u y 2 k 102 + u z 2 k 120 u x u y 2 k 002 u x u z 2 k 020 4 u x u y u z k 011 2 u y 2 u z k 101 2 u y u z 2 k 110 + 2 u x u y 2 u z k 001 + 2 u x u y u z 2 k 010 + u y 2 u z 2 k 100 u x u y 2 u z 2 k 000 ,
k 212 = k 212 2 u x k 112 2 u z k 211 u y k 202 + 4 u x u z k 111 + 2 u y u z k 201 + u x 2 k 012 + u z 2 k 210 + 2 u x u y k 102 u x 2 u y k 002 u y u z 2 k 200 2 u x 2 u z k 011 4 u x u y u z k 101 2 u x u z 2 k 110 + 2 u x 2 u y u z k 001 + u x 2 u z 2 k 010 + 2 u x u y u z 2 k 100 u x 2 u y u z 2 k 000 ,
k 221 = k 221 2 u x k 121 2 u y k 211 u z k 220 + 4 u x u y k 111 + u x 2 k 021 + u y 2 k 201 + 2 u y u z k 210 + 2 u x u z k 120 u x 2 u z k 020 u y 2 u z k 200 2 u x 2 u y k 011 2 u x u y 2 k 101 4 u x u y u z k 110 + u x 2 u y 2 k 001 + 2 u x 2 u y u z k 010 + 2 u x u y 2 u z k 100 u x 2 u y 2 u z k 000 ,
k 222 = k 222 2 u z k 221 2 u y k 212 2 u x k 122 + 4 u x u y k 112 + 4 u x u z k 121 + 4 u y u z k 211 + u x 2 k 022 + u y 2 k 202 + u z 2 k 220 8 u x u y u z k 111 2 u x 2 u z k 021 2 u y 2 u z k 201 2 u x 2 u y k 012 2 u y u z 2 k 210 2 u x u y 2 k 102 2 u x u z 2 k 120 + u x 2 u y 2 k 002 + u x 2 u z 2 k 020 + u y 2 u z 2 k 200 + 4 u x 2 u y u z k 011 + 4 u x u y 2 u z k 101 + 4 u x u y u z 2 k 110 2 u x 2 u y 2 u z k 001 2 u x 2 u y u z 2 k 010 2 u x u y 2 u z 2 k 100 + u x 2 u y 2 u z 2 k 000 .

Appendix D. Compute Post-Collision Central Moments via Relaxations under Collision Using Extended Equilibria for Cuboid Lattice

First, reflecting the original moment basis in Equation (4), we apply B and combine the selected pre-collision central moments of 2nd, 3rd, and 4th orders as follows:
k 2 s = k 200 + k 020 + k 002 , k 2 d 1 = k 200 k 020 , k 2 d 2 = k 200 k 002 k 3 s 1 = k 120 + k 102 , k 3 m 1 = k 120 k 102 , k 3 s 2 = k 210 + k 012 , k 3 m 2 = k 210 k 012 , k 3 s 3 = k 201 + k 021 , k 3 m 3 = k 201 k 021 , k 4 s = k 220 + k 202 + k 022 , k 4 d 1 = k 220 + k 202 k 022 , k 4 d 2 = k 220 k 202 .
Next, from Section 2, we can write the effective equilibrium central moments as follows:
k 000 e q = ρ , k 100 e q = k 010 e q = k 001 e q = 0 , k 110 e q = k 101 e q = k 011 e q = 0 ,
k 2 s e q = k 200 e q + k 020 e q + k 002 e q = 3 c s 2 ρ + θ b x x u x + θ b y y u y + θ b z z u z + λ b x x ρ + λ b y y ρ + λ b z z ρ Δ t , k 2 d 1 e q = k 200 e q k 020 e q = θ s x x u x θ s y y u y + λ s x x ρ + λ s y y ρ Δ t , k 2 d 2 e q = k 200 e q k 002 e q = θ s x x u x θ s z z u z + λ s x x ρ + λ s z z ρ Δ t ,
k 3 s 1 e q = k 120 e q + k 102 e q = 0 , k 3 m 1 e q = k 120 e q k 102 e q = 0 , k 3 s 2 e q = k 210 e q + k 012 e q = 0 , k 3 m 2 e q = k 210 e q k 012 e q = 0 , k 3 s 3 e q = k 201 e q + k 021 e q = 0 , k 3 m 3 e q = k 201 e q k 021 e q = 0 , k 111 e q = 0 , k 211 e q = k 121 e q = k 112 e q = 0 , k 122 e q = k 212 e q = k 221 e q = 0 , k 222 e q = c s 6 ρ , k 4 s e q = k 220 e q + k 202 e q + k 022 e q = 3 c s 4 ρ , k 4 d 1 e q = k 220 e q + k 202 e q k 022 e q = c s 4 ρ , k 4 d 2 e q = k 220 e q k 202 e q = 0 .
Note that, in Equation (A2), we extended the combinations of the diagonal parts of the second order moments by including the corrections due to grid anisotropy for the cuboid grid and non-GI velocity errors due to aliasing on the D3Q27 lattice using the results from Section 2.5. Moreover, in a slight economy for the notations, in the following, we will introduce the subscript ‘b’ for the coefficients related to corrections associated with bulk viscosity and the subscript ‘s’ for those other components influencing the shear viscosity (rather than the numerical subscripts used in Section 2.5):
θ s x = ρ 3 u x 2 + 3 c s 2 1 1 ω ν 1 2 , λ s x = 3 c s 2 1 1 ω ν 1 2 u x , θ b x = ρ 3 u x 2 + 3 c s 2 1 1 ω ξ 1 2 , λ b x = 3 c s 2 1 1 ω ξ 1 2 u x , θ s y = ρ 3 u y 2 + 3 c s 2 r 2 ] 1 ω ν 1 2 , λ s y = + ( 3 c s 2 r 2 ) 1 ω ν 1 2 u y , θ b y = ρ 3 u y 2 + 3 c s 2 r 2 1 ω ξ 1 2 , λ b y = ( 3 c s 2 r 2 ) 1 ω ξ 1 2 u y , θ s z = ρ 3 u z 2 + 3 c s 2 s 2 1 ω ν 1 2 , λ s z = + ( 3 c s 2 s 2 ) 1 ω ν 1 2 u z , θ b z = ρ 3 u z 2 + 3 c s 2 s 2 1 ω ξ 1 2 , λ b z = ( 3 c s 2 s 2 ) 1 ω ξ 1 2 u z .
Here, ω ξ is the relaxation parameter associated with the trace of the second order moments k 2 s and ω ν for the other two diagonal components k 2 d 1 and k 2 d 2 defined in Equation (A1) (as well as the off-diagonal components k 110 , k 101 , and k 011 ). As we will show later, this would enable independent specification of the bulk viscosity from the shear viscosity. For the associated equilibria in Equation (A2), the density gradients x ρ , y ρ and z ρ will be obtained from a second order (isotropic) finite difference scheme, while the diagonal components of the velocity gradient tensor x u x , y u y and z u z will be computed locally from non-equilibrium moments (using the results in Equations (41)–(46) derived in Section 2.5) as follows:
Defining
A = 1 2 ( 3 c s 2 1 ) u x , B = 1 2 ( 3 c s 2 r 2 ) u y , C = 1 2 ( 3 c s 2 s 2 ) u z , e s r 1 = A x ρ + B y ρ , e s r 2 = A x ρ + C z ρ , e b r = A x ρ B y ρ C z ρ
R b = k 200 + k 020 + k 002 3 c s 2 ρ + e b r = k 2 s 3 c s 2 ρ + e b r , R s 1 = k 200 k 020 + e s r 1 = k 2 d 1 + e s r 1 , R s 2 = k 200 k 002 + e s r 2 = k 2 d 2 + e s r 2 .
C s x = 2 c s 2 ω ν + 3 c s 2 1 2 + 3 u x 2 2 ρ , C b x = 2 c s 2 ω ξ + 3 c s 2 1 2 + 3 u x 2 2 ρ , C s y = 2 c s 2 ω ν 3 c s 2 r 2 2 3 u y 2 2 ρ , C b y = 2 c s 2 ω ξ + 3 c s 2 r 2 2 + 3 u y 2 2 ρ , C s z = 2 c s 2 ω ν 3 c s 2 s 2 2 3 u z 2 2 ρ , C b z = 2 c s 2 ω ξ + 3 c s 2 s 2 2 + 3 u z 2 2 ρ ,
we can then write the local expressions for the velocity gradients as
x u x = C s z C b y R s 1 C s y C b z R s 2 C s z R b C s x C s z C b y C s y C s x C b z C s z C b x , y u y = 1 C s y R s 1 C s x x u x , z u z = 1 C s z R s 2 C s x x u x .
Based on these quantities, we can then prescribe the post-collision central moments via relaxations under collision as follows:
k ˜ 000 = k 000 , k ˜ 100 = k 100 + ω 1 ( k 100 e q k 100 ) + ( 1 ω 1 / 2 ) σ 100 Δ t , k ˜ 010 = k 010 + ω 1 ( k 010 e q k 010 ) + ( 1 ω 1 / 2 ) σ 010 Δ t , k ˜ 001 = k 001 + ω 1 ( k 001 e q k 001 ) + ( 1 ω 1 / 2 ) σ 001 Δ t , k ˜ 110 = k 110 + ω ν ( k 110 e q k 110 ) , k ˜ 101 = k 101 + ω ν ( k 101 e q k 101 ) , k ˜ 011 = k 011 + ω ν ( k 011 e q k 011 ) , k ˜ 2 d 1 = k 2 d 1 + ω ν ( k 2 d 1 e q k 2 d 1 ) , k ˜ 2 d 2 = k 2 d 2 + ω ν ( k 2 d 2 e q k 2 d 2 ) , k ˜ 2 s = k 2 s + ω ξ ( k 2 s e q k 2 s ) , k ˜ 3 s 1 = k 3 s 1 + ω 3 s 1 ( k 3 s 1 e q k 3 s 1 ) , k ˜ 3 s 2 = k 3 s 2 + ω 3 s 2 ( k 3 s 2 e q k 3 s 2 ) , k ˜ 3 s 3 = k 3 s 3 + ω 3 s 3 ( k 3 s 3 e q k 3 s 3 ) , k ˜ 3 m 1 = k 3 m 1 + ω 3 m 1 ( k 3 m 1 e q k 3 m 1 ) , k ˜ 3 m 2 = k 3 m 2 + ω 3 m 2 ( k 3 m 2 e q k 3 m 2 ) , k ˜ 3 m 3 = k 3 m 3 + ω 3 m 3 ( k 3 m 3 e q k 3 m 3 ) , k ˜ 111 = k 111 + ω 111 ( k 111 e q k 111 ) , k ˜ 211 = k 211 + ω 211 ( k 211 e q k 211 ) , k ˜ 121 = k 121 + ω 121 ( k 121 e q k 121 ) , k ˜ 112 = k 112 + ω 112 ( k 112 e q k 112 ) , k ˜ 4 s = k 4 s + ω 4 s ( k 4 s e q k 4 s ) , k ˜ 4 d 1 = k 4 d 1 + ω 4 d 1 ( k 4 d 1 e q k 4 d 1 ) , k ˜ 4 d 2 = k 4 d 2 + ω 4 d 2 ( k 4 d 2 e q k 4 d 2 ) , k ˜ 122 = k 122 + ω 122 ( k 122 e q k 122 ) , k ˜ 212 = k 212 + ω 212 ( k 212 e q k 212 ) , k ˜ 221 = k 221 + ω 221 ( k 221 e q k 221 ) , k ˜ 222 = k 222 + ω 222 ( k 222 e q k 222 ) .
Here, the relaxation parameters for the second order moments ω ξ and ω ν independently specify the bulk viscosity ξ and shear viscosity ν , respectively, and are related to one another via
ν = c s 2 1 ω ν 1 2 Δ t , ξ = 2 c s 2 3 1 ω ξ 1 2 Δ t ,
so that, in conjunction the moment equilibria corrections, the 3DCCM-LBM simulates the 3D NS equations. The rest of the relaxation parameters for the evolution of other central moments under collision are set to unity in this work. That is, ω 1 = ω 3 s 1 = ω 3 s 2 = ω 3 s 3 = ω 3 m 1 = ω 3 m 2 = ω 3 m 3 = ω 111 = ω 211 = ω 121 = ω 112 = ω 4 s = ω 4 d 1 = ω 4 d 2 = ω 122 = ω 212 = ω 221 = ω 222 = 1.0 . Finally, we segregate the post-collision values of those selectively combined central moments in the above, which is represented by B 1 , as
k ˜ 200 = 1 3 k ˜ 2 s + k ˜ 2 d 1 + k ˜ 2 d 2 , k ˜ 120 = 1 2 k ˜ 3 s 1 + k ˜ 3 m 1 , k ˜ 102 = 1 2 k ˜ 3 s 1 k ˜ 3 m 1 k ˜ 020 = 1 3 k ˜ 2 s 2 k ˜ 2 d 1 + k ˜ 2 d 2 , k ˜ 210 = 1 2 k ˜ 3 s 2 + k ˜ 3 m 2 k ˜ 012 = 1 2 k ˜ 3 s 2 k ˜ 3 m 2 , k ˜ 002 = 1 3 k ˜ 2 s + k ˜ 2 d 1 2 k ˜ 2 d 2 , k ˜ 201 = 1 2 k ˜ 3 s 3 + k ˜ 3 m 3 , k ˜ 021 = 1 2 k ˜ 3 s 3 k ˜ 3 m 3 , k ˜ 220 = 1 4 k ˜ 4 s + k ˜ 4 d 1 + 2 k ˜ 4 d 2 , k ˜ 202 = 1 4 k ˜ 4 s + k ˜ 4 d 1 2 k ˜ 4 d 2 , k ˜ 022 = 1 2 k ˜ 4 s k ˜ 4 d 1 .
As a result, at the end of this computation, all the linearly independent post-collision central moments k ˜ m n p of the D3Q27 lattice have been computed.

Appendix E. Mapping Post-Collision Central Moments to Raw Moments

The post-collision raw moments can be obtained from the central moments via m ˜ = F 1 m ˜ c , where the inverse of the frame transformation matrix, i.e., F 1 is given by F 1 = F ( u x , u y , u z ) . As noted in our previous work [26], this follows from the property of the binomial transforms in their generating function representation. In other words, by using the expressions presented in Appendix C and performing the exchanges k m n p k m n p and, u x u x , u y u y , and u z u z . Then, applying ( · ) ˜ over the moments as they represent the post-collision states, we obtain the required mapping relations, which are listed as follows:
k ˜ 000 = k ˜ 000 ,
k ˜ 100 = k ˜ 100 + u x k ˜ 000 ,
k ˜ 010 = k ˜ 010 + u y k ˜ 000 ,
k ˜ 001 = k ˜ 001 + u z k ˜ 000 ,
k ˜ 110 = k ˜ 110 + u x k ˜ 010 + u y k ˜ 100 + u x u y k ˜ 000 ,
k ˜ 101 = k ˜ 101 + u x k ˜ 001 + u z k ˜ 100 + u x u z k ˜ 000 ,
k ˜ 011 = k ˜ 011 + u y k ˜ 001 + u z k ˜ 010 + u y u z k ˜ 000 ,
k ˜ 200 = k ˜ 200 + 2 u x k ˜ 100 + u x 2 k ˜ 000 ,
k ˜ 020 = k ˜ 020 + 2 u y k ˜ 010 + u y 2 k ˜ 000 ,
k ˜ 002 = k ˜ 002 + 2 u z k ˜ 001 + u z 2 k ˜ 000 ,
k ˜ 120 = k ˜ 120 + u x k ˜ 020 + 2 u y k ˜ 110 + 2 u x u y k ˜ 010 + u y 2 k ˜ 100 + u x u y 2 k ˜ 000 ,
k ˜ 102 = k ˜ 102 + u x k ˜ 002 + 2 u z k ˜ 101 + 2 u x u z k ˜ 001 + u z 2 k ˜ 100 + u x u z 2 k ˜ 000 ,
k ˜ 210 = k ˜ 210 + u y k ˜ 200 + 2 u x k ˜ 110 + u x 2 k ˜ 010 + 2 u x u y k ˜ 100 + u x 2 u y k ˜ 000 ,
k ˜ 012 = k ˜ 012 + u y k ˜ 002 + 2 u z k ˜ 011 + u z 2 k ˜ 010 + 2 u y u z k ˜ 001 + u y u z 2 k ˜ 000 ,
k ˜ 201 = k ˜ 201 + u z k ˜ 200 + 2 u x k ˜ 101 + u x 2 k ˜ 001 + 2 u x u z k ˜ 100 + u x 2 u z k ˜ 000 ,
k ˜ 021 = k ˜ 021 + u z k ˜ 020 + 2 u y k ˜ 011 + u y 2 k ˜ 001 + 2 u y u z k ˜ 010 + u y 2 u z k ˜ 000 ,
k ˜ 111 = k ˜ 111 + u x k ˜ 011 + u y k ˜ 101 + u z k ˜ 110 + u x u y k ˜ 001 + u x u z k ˜ 010 + u y u z k ˜ 100 + u x u y u z k ˜ 000 ,
k ˜ 220 = k ˜ 220 + 2 u y k ˜ 210 + 2 u x k ˜ 120 + u x 2 k ˜ 020 + u y 2 k ˜ 200 + 4 u x u y k ˜ 110 + 2 u x 2 u y k ˜ 010 + 2 u x u y 2 k ˜ 100 + u x 2 u y 2 k ˜ 000 ,
k ˜ 202 = k ˜ 202 + 2 u z k ˜ 201 + 2 u x k ˜ 102 + u x 2 k ˜ 002 + u z 2 k ˜ 200 + 4 u x u z k ˜ 101 + 2 u x 2 u z k ˜ 001 + 2 u x u z 2 k ˜ 100 + u x 2 u z 2 k ˜ 000 ,
k ˜ 022 = k ˜ 022 + 2 u z k ˜ 021 + 2 u y k ˜ 012 + u z 2 k ˜ 020 + u y 2 k ˜ 002 + 4 u y u z k ˜ 011 + 2 u y 2 u z k ˜ 001 + 2 u y u z 2 k ˜ 010 + u y 2 u z 2 k ˜ 000 ,
k ˜ 211 = k ˜ 211 + 2 u x k ˜ 111 + u y k ˜ 201 + u z k ˜ 210 + u x 2 k 011 + 2 u x u y k ˜ 101 + u y u z k ˜ 200 + 2 u x u z k ˜ 110 + u x 2 u y k ˜ 001 + u x 2 u z k ˜ 010 + 2 u x u y u z k ˜ 100 + u x 2 u y u z k ˜ 000 ,
k ˜ 121 = k ˜ 121 + 2 u y k ˜ 111 + u x k ˜ 021 + u z k ˜ 120 + u x u z k ˜ 020 + 2 u x u y k ˜ 011 + u y 2 k ˜ 101 + 2 u y u z k ˜ 110 u x u y 2 k ˜ 001 + 2 u x u y u z k ˜ 010 + u y 2 u z k ˜ 100 + u x u y 2 u z k ˜ 000 ,
k ˜ 112 = k ˜ 112 + 2 u z k ˜ 111 + u x k ˜ 012 + u y k ˜ 102 + u x u y k ˜ 002 + 2 u x u z k ˜ 011 + 2 u y u z k ˜ 101 + u z 2 k ˜ 110 + 2 u x u y u z k ˜ 001 + u x u z 2 k ˜ 010 + u y u z 2 k ˜ 100 + u x u y u z 2 k ˜ 000 ,
k ˜ 122 = k ˜ 122 + 2 u y k ˜ 112 + 2 u z k ˜ 121 + u x k ˜ 022 + 4 u y u z k ˜ 111 + 2 u x u z k ˜ 021 + 2 u x u y k ˜ 012 + u y 2 k ˜ 102 + u z 2 k ˜ 120 + u x u y 2 k ˜ 002 + u x u z 2 k ˜ 020 + 4 u x u y u z k ˜ 011 + 2 u y 2 u z k ˜ 101 + 2 u y u z 2 k ˜ 110 + 2 u x u y 2 u z k ˜ 001 + 2 u x u y u z 2 k ˜ 010 + u y 2 u z 2 k ˜ 100 + u x u y 2 u z 2 k ˜ 000 ,
k ˜ 212 = k ˜ 212 + 2 u x k ˜ 112 + 2 u z k ˜ 211 + u y k ˜ 202 + 4 u x u z k ˜ 111 + 2 u y u z k ˜ 201 + u x 2 k ˜ 012 + u z 2 k ˜ 210 + 2 u x u y k ˜ 102 + u x 2 u y k ˜ 002 + u y u z 2 k ˜ 200 + 2 u x 2 u z k ˜ 011 + 4 u x u y u z k ˜ 101 + 2 u x u z 2 k ˜ 110 + 2 u x 2 u y u z k ˜ 001 + u x 2 u z 2 k ˜ 010 + 2 u x u y u z 2 k ˜ 100 + u x 2 u y u z 2 k ˜ 000 ,
k ˜ 221 = k ˜ 221 + 2 u x k ˜ 121 + 2 u y k ˜ 211 + u z k ˜ 220 + 4 u x u y k ˜ 111 + u x 2 k ˜ 021 + u y 2 k ˜ 201 + 2 u y u z k ˜ 210 + 2 u x u z k ˜ 120 + u x 2 u z k ˜ 020 + u y 2 u z k ˜ 200 + 2 u x 2 u y k ˜ 011 + 2 u x u y 2 k ˜ 101 + 4 u x u y u z k ˜ 110 + u x 2 u y 2 k ˜ 001 + 2 u x 2 u y u z k ˜ 010 + 2 u x u y 2 u z k ˜ 100 + u x 2 u y 2 u z k ˜ 000 ,
k ˜ 222 = k ˜ 222 + 2 u z k ˜ 221 + 2 u y k ˜ 212 + 2 u x k ˜ 122 + 4 u x u y k ˜ 112 + 4 u x u z k ˜ 121 + 4 u y u z k ˜ 211 + u x 2 k ˜ 022 + u y 2 k ˜ 202 + u z 2 k ˜ 220 + 8 u x u y u z k ˜ 111 + 2 u x 2 u z k ˜ 021 + 2 u y 2 u z k ˜ 201 + 2 u x 2 u y k ˜ 012 + 2 u y u z 2 k ˜ 210 + 2 u x u y 2 k ˜ 102 + 2 u x u z 2 k ˜ 120 + u x 2 u y 2 k ˜ 002 + u x 2 u z 2 k ˜ 020 + u y 2 u z 2 k ˜ 200 + 4 u x 2 u y u z k ˜ 011 + 4 u x u y 2 u z k ˜ 101 + 4 u x u y u z 2 k ˜ 110 + 2 u x 2 u y 2 u z k ˜ 001 + 2 u x 2 u y u z 2 k ˜ 010 + 2 u x u y 2 u z 2 k ˜ 100 + u x 2 u y 2 u z 2 k ˜ 000 .

Appendix F. Inverse Scaling Post-Collision Raw Moments by Grid Aspect Ratios

The inverse scaling of the post-collision raw moments, i.e., m ˜ S 1 m ˜ involves dividing the post-collision raw moments k ˜ m n p of the order ( m + n + p ) by r n s p . That is,
k ˜ 000 = k ˜ 000 , k ˜ 100 = k ˜ 100 , k ˜ 010 = r 1 k ˜ 010 , k ˜ 001 = s 1 k ˜ 001 , k ˜ 200 = k ˜ 200 , k ˜ 102 = s 2 k ˜ 102 , k ˜ 021 = r 2 s 1 k ˜ 021 , k ˜ 110 = r 1 k ˜ 110 , k ˜ 020 = r 2 k ˜ 020 , k ˜ 210 = r 1 k ˜ 210 , k ˜ 111 = r 1 s 1 k ˜ 111 , k ˜ 101 = s 1 k ˜ 101 , k ˜ 002 = s 2 k ˜ 002 , k ˜ 220 = r 2 k ˜ 220 , k ˜ 012 = r 1 s 2 k ˜ 012 , k ˜ 011 = r 1 s 1 k ˜ 011 , k ˜ 120 = r 2 k ˜ 120 , k ˜ 201 = s 1 k ˜ 201 , k ˜ 202 = s 2 k ˜ 202 , k ˜ 022 = r 2 s 2 k ˜ 022 , k ˜ 211 = r 1 s 1 k ˜ 211 , k ˜ 121 = r 2 s 1 k ˜ 121 , k ˜ 112 = r 1 s 2 k ˜ 112 , k ˜ 122 = r 2 s 2 k ˜ 122 , k ˜ 212 = r 1 s 2 k ˜ 212 , k ˜ 221 = r 2 s 1 k ˜ 221 , k ˜ 222 = r 2 s 2 k ˜ 222 .

Appendix G. Mapping Post-Collision Raw Moments to Distribution Functions

The post-collision distribution functions can be obtained from the raw moments via f ˜ = P 1 m ˜ , where P 1 is the inverse of the simpler moment basis for the cubic lattice presented in Equation (53). Thus, we find
f ˜ 0 = k ˜ 000 k ˜ 200 k ˜ 020 k ˜ 002 + k ˜ 220 + k ˜ 202 + k ˜ 022 k ˜ 222 , f ˜ 1 = 1 2 k ˜ 100 + k ˜ 200 k ˜ 120 k ˜ 102 k ˜ 220 k ˜ 202 + k ˜ 122 + k ˜ 222 , f ˜ 2 = 1 2 k ˜ 100 + k ˜ 200 + k ˜ 120 + k ˜ 102 k ˜ 220 k ˜ 202 k ˜ 122 + k ˜ 222 , f ˜ 3 = 1 2 k ˜ 010 + k ˜ 020 k ˜ 210 k ˜ 012 k ˜ 220 k ˜ 022 + k ˜ 212 + k ˜ 222 , f ˜ 4 = 1 2 k ˜ 010 + k ˜ 020 + k ˜ 210 + k ˜ 012 k ˜ 220 k ˜ 022 k ˜ 212 + k ˜ 222 , f ˜ 5 = 1 2 k ˜ 001 + k ˜ 002 k ˜ 201 k ˜ 021 k ˜ 202 k ˜ 022 + k ˜ 221 + k ˜ 222 , f ˜ 6 = 1 2 k ˜ 001 + k ˜ 002 + k ˜ 201 + k ˜ 021 k ˜ 202 k ˜ 022 k ˜ 221 + k ˜ 222 , f ˜ 7 = 1 4 k ˜ 110 + k ˜ 120 + k ˜ 210 + k ˜ 220 k ˜ 112 k ˜ 122 k ˜ 212 k ˜ 222 , f ˜ 8 = 1 4 k ˜ 110 k ˜ 120 + k ˜ 210 + k ˜ 220 + k ˜ 112 + k ˜ 122 k ˜ 212 k ˜ 222 , f ˜ 9 = 1 4 k ˜ 110 + k ˜ 120 k ˜ 210 + k ˜ 220 + k ˜ 112 k ˜ 122 + k ˜ 212 k ˜ 222 , f ˜ 10 = 1 4 k ˜ 110 k ˜ 120 k ˜ 210 + k ˜ 220 k ˜ 112 + k ˜ 122 + k ˜ 212 k ˜ 222 , f ˜ 11 = 1 4 k ˜ 101 + k ˜ 102 + k ˜ 201 + k ˜ 202 k ˜ 121 k ˜ 122 k ˜ 221 k ˜ 222 , f ˜ 12 = 1 4 k ˜ 101 k ˜ 102 + k ˜ 201 + k ˜ 202 + k ˜ 121 + k ˜ 122 k ˜ 221 k ˜ 222 , f ˜ 13 = 1 4 k ˜ 101 + k ˜ 102 k ˜ 201 + k ˜ 202 + k ˜ 121 k ˜ 122 + k ˜ 221 k ˜ 222 , f ˜ 14 = 1 4 k ˜ 101 k ˜ 102 k ˜ 201 + k ˜ 202 k ˜ 121 + k ˜ 122 + k ˜ 221 k ˜ 222 , f ˜ 15 = 1 4 k ˜ 011 + k ˜ 012 + k ˜ 021 + k ˜ 022 k ˜ 211 k ˜ 212 k ˜ 221 k ˜ 222 , f ˜ 16 = 1 4 k ˜ 011 k ˜ 012 + k ˜ 021 + k ˜ 022 + k ˜ 211 + k ˜ 212 k ˜ 221 k ˜ 222 , f ˜ 17 = 1 4 k ˜ 011 + k ˜ 012 k ˜ 021 + k ˜ 022 + k ˜ 211 k ˜ 212 + k ˜ 221 k ˜ 222 , f ˜ 18 = 1 4 k ˜ 011 k ˜ 012 k ˜ 021 + k ˜ 022 k ˜ 211 + k ˜ 212 + k ˜ 221 k ˜ 222 , f ˜ 19 = 1 8 k ˜ 111 + k ˜ 211 + k ˜ 121 + k ˜ 112 + k ˜ 122 + k ˜ 212 + k ˜ 221 + k ˜ 222 , f ˜ 20 = 1 8 k ˜ 111 + k ˜ 211 k ˜ 121 k ˜ 112 k ˜ 122 + k ˜ 212 + k ˜ 221 + k ˜ 222 , f ˜ 21 = 1 8 k ˜ 111 k ˜ 211 + k ˜ 121 k ˜ 112 + k ˜ 122 k ˜ 212 + k ˜ 221 + k ˜ 222 , f ˜ 22 = 1 8 k ˜ 111 k ˜ 211 k ˜ 121 + k ˜ 112 k ˜ 122 k ˜ 212 + k ˜ 221 + k ˜ 222 , f ˜ 23 = 1 8 k ˜ 111 k ˜ 211 k ˜ 121 + k ˜ 112 + k ˜ 122 + k ˜ 212 k ˜ 221 + k ˜ 222 , f ˜ 24 = 1 8 k ˜ 111 k ˜ 211 + k ˜ 121 k ˜ 112 k ˜ 122 + k ˜ 212 k ˜ 221 + k ˜ 222 , f ˜ 25 = 1 8 k ˜ 111 + k ˜ 211 k ˜ 121 k ˜ 112 + k ˜ 122 k ˜ 212 k ˜ 221 + k ˜ 222 , f ˜ 26 = 1 8 k ˜ 111 + k ˜ 211 + k ˜ 121 + k ˜ 112 k ˜ 122 k ˜ 212 k ˜ 221 + k ˜ 222 .

References

  1. McNamara, G.R.; Zanetti, G. Use of the Boltzmann equation to simulate lattice-gas automata. Phys. Rev. Lett. 1988, 61, 2332. [Google Scholar] [CrossRef]
  2. Higuera, F.J.; Jiménez, J. Boltzmann approach to lattice gas simulations. EPL Europhys. Lett. 1989, 9, 663. [Google Scholar] [CrossRef]
  3. Benzi, R.; Succi, S.; Vergassola, M. The lattice Boltzmann equation: Theory and applications. Phys. Rep. 1992, 222, 145–197. [Google Scholar] [CrossRef]
  4. He, X.; Luo, L.S. Theory of the lattice Boltzmann method: From the Boltzmann equation to the lattice Boltzmann equation. Phys. Rev. E 1997, 56, 6811. [Google Scholar] [CrossRef] [Green Version]
  5. Lallemand, P.; Luo, L.S.; Krafczyk, M.; Yong, W.A. The lattice Boltzmann method for nearly incompressible flows. J. Comput. Phys. 2021, 431, 109713. [Google Scholar] [CrossRef]
  6. Chen, S.; Doolen, G.D. Lattice Boltzmann method for fluid flows. Annu. Rev. Fluid Mech. 1998, 30, 329–364. [Google Scholar] [CrossRef] [Green Version]
  7. Yu, D.; Mei, R.; Luo, L.S.; Shyy, W. Viscous flow computations with the method of lattice Boltzmann equation. Prog. Aerosp. Sci. 2003, 39, 329–367. [Google Scholar] [CrossRef]
  8. Aidun, C.K.; Clausen, J.R. Lattice-Boltzmann method for complex flows. Annu. Rev. Fluid Mech. 2010, 42, 439–472. [Google Scholar] [CrossRef]
  9. Sharma, K.V.; Straka, R.; Tavares, F.W. Current status of Lattice Boltzmann Methods applied to aerodynamic, aeroacoustic, and thermal flows. Prog. Aerosp. Sci. 2020, 115, 100616. [Google Scholar] [CrossRef]
  10. Qian, Y.H.; d’Humières, D.; Lallemand, P. Lattice BGK models for Navier-Stokes equation. EPL Europhys. Lett. 1992, 17, 479. [Google Scholar] [CrossRef]
  11. D’Humieres, D. Multiple–relaxation–time lattice Boltzmann models in three dimensions. Philos. Trans. R. Soc. Lond. Ser. A Math. Phys. Eng. Sci. 2002, 360, 437–451. [Google Scholar] [CrossRef] [PubMed]
  12. He, X.; Luo, L.S.; Dembo, M. Some progress in lattice Boltzmann method. Part I. Nonuniform mesh grids. J. Comput. Phys. 1996, 129, 357–363. [Google Scholar] [CrossRef] [Green Version]
  13. Lu, Z.; Liao, Y.; Qian, D.; McLaughlin, J.; Derksen, J.; Kontomaris, K. Large eddy simulations of a stirred tank using the lattice Boltzmann method on a nonuniform grid. J. Comput. Phys. 2002, 181, 675–704. [Google Scholar] [CrossRef] [Green Version]
  14. Lallemand, P.; Luo, L.S. Theory of the lattice Boltzmann method: Dispersion, dissipation, isotropy, Galilean invariance, and stability. Phys. Rev. E 2000, 61, 6546. [Google Scholar] [CrossRef] [Green Version]
  15. Peng, G.; Xi, H.; Duncan, C.; Chou, S.H. Lattice Boltzmann method on irregular meshes. Phys. Rev. E 1998, 58, R4124. [Google Scholar] [CrossRef]
  16. Li, Y.; LeBoeuf, E.J.; Basu, P. Least-squares finite-element lattice Boltzmann method. Phys. Rev. E 2004, 69, 065701. [Google Scholar] [CrossRef] [Green Version]
  17. Koelman, J. A simple lattice Boltzmann scheme for Navier–Stokes fluid flow. EPL Europhys. Lett. 1991, 15, 603. [Google Scholar] [CrossRef]
  18. Hegele, L.A., Jr.; Mattila, K.; Philippi, P.C. Rectangular lattice-Boltzmann schemes with BGK-collision operator. J. Sci. Comput. 2013, 56, 230–242. [Google Scholar] [CrossRef]
  19. Peng, C.; Guo, Z.; Wang, L.P. A lattice-BGK model for the Navier-Stokes equations based on a rectangular grid. Comput. Math. Appl. 2016, 78, 1076–1094. [Google Scholar] [CrossRef]
  20. Wang, Z.; Zhang, J. Simulating anisotropic flows with isotropic lattice models via coordinate and velocity transformation. Int. J. Mod. Phys. C 2019, 30, 1941001. [Google Scholar] [CrossRef]
  21. Bouzidi, M.; d’Humières, D.; Lallemand, P.; Luo, L.S. Lattice Boltzmann equation on a two-dimensional rectangular grid. J. Comput. Phys. 2001, 172, 704–717. [Google Scholar] [CrossRef] [Green Version]
  22. Zhou, J.G. MRT rectangular lattice Boltzmann method. Int. J. Mod. Phys. C 2012, 23, 1250040. [Google Scholar] [CrossRef]
  23. Zong, Y.; Peng, C.; Guo, Z.; Wang, L.P. Designing correct fluid hydrodynamics on a rectangular grid using MRT lattice Boltzmann approach. Comput. Math. Appl. 2016, 72, 288–310. [Google Scholar] [CrossRef] [Green Version]
  24. Yahia, E.; Premnath, K. Effective Simulation Strategy of Multiscale Flows using a Lattice Boltzmann model with a Stretched Lattice. In Proceedings of the Bulletin of the American Physical Society of the 70th Annual Meeting of the APS Division of Fluid Dynamics (DFD), Denver, CO, USA, 21 November 2017. [Google Scholar]
  25. Yahia, E.; Premnath, K. Central Moment Lattice Boltzmann Method for Computation of Flows on Stretched Lattice Grids. In Proceedings of the Bulletin of the American Physical Society of the 71st Annual Meeting of the APS Division of Fluid Dynamics (DFD), Atlanta, GA, USA, 19 November 2018. [Google Scholar]
  26. Yahia, E.; Premnath, K.N. Central moment lattice Boltzmann method on a rectangular lattice. Phys. Fluids 2021, 33, 057110. [Google Scholar] [CrossRef]
  27. Dubois, F.; Février, T.; Graille, B. On the stability of a relative velocity lattice Boltzmann scheme for compressible Navier–Stokes equations. Comptes Rendus Mécanique 2015, 343, 599–610. [Google Scholar] [CrossRef]
  28. Geier, M.; Schönherr, M.; Pasquali, A.; Krafczyk, M. The cumulant lattice Boltzmann equation in three dimensions: Theory and validation. Comput. Math. Appl. 2015, 70, 507–547. [Google Scholar] [CrossRef] [Green Version]
  29. Geier, M.; Greiner, A.; Korvink, J.G. Cascaded digital lattice Boltzmann automata for high Reynolds number flow. Phys. Rev. E 2006, 73, 066705. [Google Scholar] [CrossRef] [PubMed]
  30. Premnath, K.N.; Banerjee, S. On the three-dimensional central moment lattice Boltzmann method. J. Stat. Phys. 2011, 143, 747–794. [Google Scholar] [CrossRef] [Green Version]
  31. Ning, Y.; Premnath, K.N.; Patil, D.V. Numerical study of the properties of the central moment lattice Boltzmann method. Int. J. Numer. Methods Fluids 2016, 82, 59–90. [Google Scholar] [CrossRef] [Green Version]
  32. Chávez-Modena, M.; Ferrer, E.; Rubio, G. Improving the stability of multiple-relaxation lattice Boltzmann methods with central moments. Comput. Fluids 2018, 172, 397–409. [Google Scholar] [CrossRef]
  33. Hajabdollahi, F.; Premnath, K.N. Central moments-based cascaded lattice Boltzmann method for thermal convective flows in three-dimensions. Int. J. Heat Mass Transf. 2018, 120, 838–850. [Google Scholar] [CrossRef] [Green Version]
  34. Hajabdollahi, F.; Premnath, K.N.; Welch, S.W. Cascaded lattice Boltzmann method based on central moments for axisymmetric thermal flows including swirling effects. Int. J. Heat Mass Transf. 2019, 128, 999–1016. [Google Scholar] [CrossRef] [Green Version]
  35. Hajabdollahi, F.; Premnath, K.N.; Welch, S.W. Central moment lattice Boltzmann method using a pressure-based formulation for multiphase flows at high density ratios and including effects of surface tension and Marangoni stresses. J. Comput. Phys. 2021, 425, 109893. [Google Scholar] [CrossRef]
  36. Adam, S.; Hajabdollahi, F.; Premnath, K.N. Cascaded lattice Boltzmann modeling and simulations of three-dimensional non-Newtonian fluid flows. Comput. Phys. Commun. 2021, 262, 107858. [Google Scholar] [CrossRef]
  37. Jiang, B.; Zhang, X. An orthorhombic lattice Boltzmann model for pore-scale simulation of fluid flow in porous media. Transp. Porous Media 2014, 104, 145–159. [Google Scholar] [CrossRef]
  38. Wang, L.P.; Min, H.; Peng, C.; Geneva, N.; Guo, Z. A lattice-Boltzmann scheme of the Navier–Stokes equation on a three-dimensional cuboid lattice. Comput. Math. Appl. 2019, 78, 1053–1075. [Google Scholar] [CrossRef]
  39. Bauer, M.; Silva, G.; Rüde, U. Truncation errors of the D3Q19 lattice model for the lattice Boltzmann method. J. Comput. Phys. 2020, 405, 109111. [Google Scholar] [CrossRef]
  40. Silva, G.; Semiao, V. Truncation errors and the rotational invariance of three-dimensional lattice models in the lattice Boltzmann method. J. Comput. Phys. 2014, 269, 259–279. [Google Scholar] [CrossRef]
  41. Geier, M.; Greiner, A.; Korvink, J.G. A factorized central moment lattice Boltzmann method. Eur. Phys. J. Spec. Top. 2009, 171, 55–61. [Google Scholar] [CrossRef]
  42. Chapman, S.; Cowling, T.G.; Burnett, D. The Mathematical Theory of Non-Uniform Gases: An Account of the Kinetic Theory of Viscosity, Thermal Conduction and Diffusion in Gases; Cambridge University Press: Cambridge, UK, 1990. [Google Scholar]
  43. D’Humières, D. Generalized lattice Boltzmann Equations. In Rarefied Gas Dynamics: Theory and Simulations; Weaver, D.P., Shizgal, B., Eds.; Progress in Astronautics and Aeronautics; American Institute of Aeronautics and Astronautics, Inc.: Washington, DC, USA, 1992; pp. 450–458. [Google Scholar]
  44. Premnath, K.N.; Banerjee, S. Incorporating forcing terms in cascaded lattice Boltzmann approach by method of central moments. Phys. Rev. E 2009, 80, 036702. [Google Scholar] [CrossRef] [Green Version]
  45. Hajabdollahi, F.; Premnath, K.N. Galilean-invariant preconditioned central-moment lattice Boltzmann method without cubic velocity errors for efficient steady flow simulations. Phys. Rev. E 2018, 97, 053303. [Google Scholar] [CrossRef] [Green Version]
  46. Kumar, A. Isotropic finite-differences. J. Comput. Phys. 2004, 201, 109–118. [Google Scholar] [CrossRef]
  47. Leclaire, S. Forward and backward finite differences for isotropic gradients on a square lattice derived from a rectangular lattice formulation. Int. J. Comput. Math. 2015, 92, 1078–1085. [Google Scholar] [CrossRef]
  48. White, F.M.; Corfield, I. Viscous Fluid Flow; McGraw-Hill: New York, NY, USA, 2006; Volume 3. [Google Scholar]
  49. Ginzburg, I. Equilibrium-type and link-type lattice Boltzmann models for generic advection and anisotropic-dispersion equation. Adv. Water Resour. 2005, 28, 1171–1195. [Google Scholar] [CrossRef]
  50. Ginzburg, I. Multiple anisotropic collisions for advection–diffusion Lattice Boltzmann schemes. Adv. Water Resour. 2013, 51, 381–404. [Google Scholar] [CrossRef]
  51. Ginzburg, I. Generic boundary conditions for lattice Boltzmann models and their application to advection and anisotropic dispersion equations. Adv. Water Resour. 2005, 28, 1196–1216. [Google Scholar] [CrossRef]
  52. Ginzburg, I. Variably saturated flow described with the anisotropic lattice Boltzmann methods. Comput. Fluids 2006, 35, 831–848. [Google Scholar] [CrossRef]
  53. Ginzburg, I. Truncation errors, exact and heuristic stability analysis of two-relaxation-times lattice Boltzmann schemes for anisotropic advection-diffusion equation. Commun. Comput. Phys. 2012, 11, 1439–1502. [Google Scholar] [CrossRef]
  54. O’Brien, V. Pulsatile fully developed flow in rectangular channels. J. Frankl. Inst. 1975, 300, 225–230. [Google Scholar] [CrossRef]
  55. Shankar, P.; Deshpande, M. Fluid mechanics in the driven cavity. Annu. Rev. Fluid Mech. 2000, 32, 93–136. [Google Scholar] [CrossRef] [Green Version]
  56. Ku, H.C.; Hirsh, R.S.; Taylor, T.D. A pseudospectral method for solution of the three-dimensional incompressible Navier-Stokes equations. J. Comput. Phys. 1987, 70, 439–462. [Google Scholar] [CrossRef]
  57. Jiang, B.N.; Lin, T.; Povinelli, L.A. Large-scale computation of incompressible viscous flow by least-squares finite element method. Comput. Methods Appl. Mech. Eng. 1994, 114, 213–231. [Google Scholar] [CrossRef] [Green Version]
  58. Shu, C.; Wang, L.; Chew, Y. Numerical computation of three-dimensional incompressible Navier–Stokes equations in primitive variable form by DQ method. Int. J. Numer. Methods Fluids 2003, 43, 345–368. [Google Scholar] [CrossRef]
Figure 1. Three-dimensional, twenty seven particle velocity (D3Q27) cuboid lattice.
Figure 1. Three-dimensional, twenty seven particle velocity (D3Q27) cuboid lattice.
Fluids 06 00326 g001
Figure 2. Comparison of the velocity profiles in the y z plane along the reference lines at y = 0.1 L, y = 0.2 L, y = 0.3 L and y = 0.5 L of a square duct of side L computed using cuboid 3DCCM-LBM (lines) with aspect ratios of ( r , s ) = ( 0.5 , 0.33 ) with the analytical solution shown in Equation (76) (symbols).
Figure 2. Comparison of the velocity profiles in the y z plane along the reference lines at y = 0.1 L, y = 0.2 L, y = 0.3 L and y = 0.5 L of a square duct of side L computed using cuboid 3DCCM-LBM (lines) with aspect ratios of ( r , s ) = ( 0.5 , 0.33 ) with the analytical solution shown in Equation (76) (symbols).
Fluids 06 00326 g002
Figure 3. The velocity profiles for the pulsatile flow through a square duct at different instants within the time period T with Womersley numbers of (a) Wo = 3.09 and (b) Wo = 6.25 computed using 3DCCM-LBM (lines) with different aspect ratios ( ( r , s ) = ( 0.5 , 1.0 ) , ( r , s ) = ( 0.5 , 0.5 ) , and ( r , s ) = ( 0.25 , 0.5 ) ) compared with the analytical solution given in Equation (77) (symbols).
Figure 3. The velocity profiles for the pulsatile flow through a square duct at different instants within the time period T with Womersley numbers of (a) Wo = 3.09 and (b) Wo = 6.25 computed using 3DCCM-LBM (lines) with different aspect ratios ( ( r , s ) = ( 0.5 , 1.0 ) , ( r , s ) = ( 0.5 , 0.5 ) , and ( r , s ) = ( 0.25 , 0.5 ) ) compared with the analytical solution given in Equation (77) (symbols).
Fluids 06 00326 g003
Figure 4. Distribution of the velocity field across the y z plane of the pulsatile flow through a square duct with the Womersley number Wo = 3.09 at the instant t = T (a) computed using 3DCCM-LBM with aspect ratios of ( r , s ) = ( 0.5 , 1.0 ) and (b) obtained from the exact solution given in Equation (77) (symbols).
Figure 4. Distribution of the velocity field across the y z plane of the pulsatile flow through a square duct with the Womersley number Wo = 3.09 at the instant t = T (a) computed using 3DCCM-LBM with aspect ratios of ( r , s ) = ( 0.5 , 1.0 ) and (b) obtained from the exact solution given in Equation (77) (symbols).
Fluids 06 00326 g004
Figure 5. Distribution of the velocity field across the y z plane of the pulsatile flow through a square duct with the Womersley number Wo = 6.25 at the instant t = T (a) computed using 3DCCM-LBM with aspect ratios of ( r , s ) = ( 0.5 , 1.0 ) and (b) obtained from the exact solution given in Equation (77) (symbols).
Figure 5. Distribution of the velocity field across the y z plane of the pulsatile flow through a square duct with the Womersley number Wo = 6.25 at the instant t = T (a) computed using 3DCCM-LBM with aspect ratios of ( r , s ) = ( 0.5 , 1.0 ) and (b) obtained from the exact solution given in Equation (77) (symbols).
Fluids 06 00326 g005
Figure 6. The velocity profiles along the centerlines of the 3D lid driven cavity flow for (a) u component along the y direction at x = 0.5 H and z = 0.5 H , and (b) v component along the x direction at y = 0.5 H and z = 0.5 H computed using the 3DCCM-LBM using three different aspect ratios and compared with the reference numerical solution from Shu et al. [58] (symbols).
Figure 6. The velocity profiles along the centerlines of the 3D lid driven cavity flow for (a) u component along the y direction at x = 0.5 H and z = 0.5 H , and (b) v component along the x direction at y = 0.5 H and z = 0.5 H computed using the 3DCCM-LBM using three different aspect ratios and compared with the reference numerical solution from Shu et al. [58] (symbols).
Fluids 06 00326 g006
Figure 7. The velocity profiles along the centerlines of the 3D lid driven cavity flow for (a) u component along the y direction at x = 0.5 H and z = 0.5 H , and (b) v component along the x direction at y = 0.5 H and z = 0.5 H computed using the 3DCCM-LBM on a cuboid lattice with the grid aspect ratios of r = 0.5 and s = 1.0 at three different Reynolds numbers Re = 100 , 400, and 1000 and compared with the reference numerical solution from Shu et al. [58] (symbols).
Figure 7. The velocity profiles along the centerlines of the 3D lid driven cavity flow for (a) u component along the y direction at x = 0.5 H and z = 0.5 H , and (b) v component along the x direction at y = 0.5 H and z = 0.5 H computed using the 3DCCM-LBM on a cuboid lattice with the grid aspect ratios of r = 0.5 and s = 1.0 at three different Reynolds numbers Re = 100 , 400, and 1000 and compared with the reference numerical solution from Shu et al. [58] (symbols).
Fluids 06 00326 g007
Figure 8. Projections of the streamlines in the 3D lid-driven cubic cavity flow along three different mid-planes computed using 3DCCM-LBM with a grid aspect ratio of r = 0.5 and s = 1.0 at Re = 100 (ac), Re = 400 (df) and Re = 1000 (gi) at z = 0.5 H , y = 0.5 H , and x = 0.5 H , respectively.
Figure 8. Projections of the streamlines in the 3D lid-driven cubic cavity flow along three different mid-planes computed using 3DCCM-LBM with a grid aspect ratio of r = 0.5 and s = 1.0 at Re = 100 (ac), Re = 400 (df) and Re = 1000 (gi) at z = 0.5 H , y = 0.5 H , and x = 0.5 H , respectively.
Fluids 06 00326 g008
Figure 9. Schematic of the 3D shallow cuboid cavity of dimensions L × H × W .
Figure 9. Schematic of the 3D shallow cuboid cavity of dimensions L × H × W .
Fluids 06 00326 g009
Figure 10. The velocity profiles along the centerlines of a 3D shallow lid driven cavity of aspect ratio L / H = 2 and L / W = 4 at a Reynolds number Re = 100 computed using 3DCCM-LBM with the cubic lattice ( r = s = 1 ) and a cuboid lattice with the following three different choices o fthe grid aspect ratios: ( r , s ) = ( 0.406 , 1.3 ) , ( r , s ) = ( 0.375 , 0.75 ) , and ( r , s ) = ( 0.375 , 1.0 ) . (a) u component along the y direction at x = 0.5 L and z = 0.5 W , and (b) v component along the x direction at y = 0.5 H and z = 0.5 W .
Figure 10. The velocity profiles along the centerlines of a 3D shallow lid driven cavity of aspect ratio L / H = 2 and L / W = 4 at a Reynolds number Re = 100 computed using 3DCCM-LBM with the cubic lattice ( r = s = 1 ) and a cuboid lattice with the following three different choices o fthe grid aspect ratios: ( r , s ) = ( 0.406 , 1.3 ) , ( r , s ) = ( 0.375 , 0.75 ) , and ( r , s ) = ( 0.375 , 1.0 ) . (a) u component along the y direction at x = 0.5 L and z = 0.5 W , and (b) v component along the x direction at y = 0.5 H and z = 0.5 W .
Fluids 06 00326 g010
Figure 11. Comparison of streamline patterns along the mid-planes of a 3D shallow lid driven cavity of aspect ratio L/H = 2 and L/W = 4 at a Reynolds number Re = 100 computed using 3DCCM-LBM with the cubic lattice ((r, s) = (1.0, 1.0)) using a grid resolution of 256 × 128 × 64 shown in sub-figures (a,c,e) and compared with the 3DCCM-LBM with the cuboid lattice ((r, s) = (0.406, 1.3)) using a grid resolution of 104 × 64 × 40 shown in sub-figures (b,d,f).
Figure 11. Comparison of streamline patterns along the mid-planes of a 3D shallow lid driven cavity of aspect ratio L/H = 2 and L/W = 4 at a Reynolds number Re = 100 computed using 3DCCM-LBM with the cubic lattice ((r, s) = (1.0, 1.0)) using a grid resolution of 256 × 128 × 64 shown in sub-figures (a,c,e) and compared with the 3DCCM-LBM with the cuboid lattice ((r, s) = (0.406, 1.3)) using a grid resolution of 104 × 64 × 40 shown in sub-figures (b,d,f).
Fluids 06 00326 g011aFluids 06 00326 g011b
Figure 12. Numerical stability test results showing the maximum threshold velocity of the lid U in a 3D lid driven cubic cavity flow at different values of the relaxation parameter corresponding to the shear viscosity for the 3DCCM-LBM (i.e., based on central moments) and 3DCRM-LBM (i.e., based on central moments) at grid aspect ratios of r = 0.75 , s = 1.0 (upper two curves), and r = 0.5 , s = 1.0 (lower two curves).
Figure 12. Numerical stability test results showing the maximum threshold velocity of the lid U in a 3D lid driven cubic cavity flow at different values of the relaxation parameter corresponding to the shear viscosity for the 3DCCM-LBM (i.e., based on central moments) and 3DCRM-LBM (i.e., based on central moments) at grid aspect ratios of r = 0.75 , s = 1.0 (upper two curves), and r = 0.5 , s = 1.0 (lower two curves).
Fluids 06 00326 g012
Figure 13. Numerical stability results of the 3DCCM-LBM showing the maximum threshold velocity of the lid U in a 3D lid driven cubic cavity flow at different values of the relaxation parameter corresponding to the shear viscosity obtained for three different values of the relaxation parameter controlling the bulk viscosity, i.e., ω ξ = 0.5 , 1.0 , and 1.4 .
Figure 13. Numerical stability results of the 3DCCM-LBM showing the maximum threshold velocity of the lid U in a 3D lid driven cubic cavity flow at different values of the relaxation parameter corresponding to the shear viscosity obtained for three different values of the relaxation parameter controlling the bulk viscosity, i.e., ω ξ = 0.5 , 1.0 , and 1.4 .
Fluids 06 00326 g013
Figure 14. Comparison of the maximum Reynolds number for numerical stability of 3DCCM-LBM and 3DCRM-LBM at different grid resolutions with cuboid grid aspect ratios of r = 0.5 and s = 1.0 for a fixed lid velocity of U = 0.2 and c s 2 = 0.08 .
Figure 14. Comparison of the maximum Reynolds number for numerical stability of 3DCCM-LBM and 3DCRM-LBM at different grid resolutions with cuboid grid aspect ratios of r = 0.5 and s = 1.0 for a fixed lid velocity of U = 0.2 and c s 2 = 0.08 .
Fluids 06 00326 g014
Table 1. Parameters used in the simulations of 3D square duct flow using 3DCCM-LBM at different lattice grid aspect ratios with a constant Reynolds number Re = 50 .
Table 1. Parameters used in the simulations of 3D square duct flow using 3DCCM-LBM at different lattice grid aspect ratios with a constant Reynolds number Re = 50 .
N x × N y × N z rs F x c s 2 τ ν
3 × 30 × 60 1.00.5 3.82 × 10 6 0.100.60.01
3 × 30 × 90 1.00.33 5.50 × 10 6 0.040.80.012
3 × 60 × 30 0.51.0 5.09 × 10 9 0.041.00.02
3 × 60 × 90 0.50.33 5.09 × 10 6 0.041.00.02
Table 2. Parameters used in the simulation of 3D lid-driven cubic cavity flow using 3DCCM-LBM.
Table 2. Parameters used in the simulation of 3D lid-driven cubic cavity flow using 3DCCM-LBM.
Re N x × N y × N z rsU c s 2 τ ν
100 80 × 80 × 80 1.01.00.10.33330.7370.079
80 × 160 × 80 0.51.00.050.140.7820.039
80 × 240 × 80 0.331.00.040.061.0230.031
400 80 × 160 × 80 0.51.00.10.33330.7370.079
1000 80 × 160 × 80 0.51.00.10.33330.7370.079
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Yahia, E.; Schupbach, W.; Premnath, K.N. Three-Dimensional Central Moment Lattice Boltzmann Method on a Cuboid Lattice for Anisotropic and Inhomogeneous Flows. Fluids 2021, 6, 326. https://doi.org/10.3390/fluids6090326

AMA Style

Yahia E, Schupbach W, Premnath KN. Three-Dimensional Central Moment Lattice Boltzmann Method on a Cuboid Lattice for Anisotropic and Inhomogeneous Flows. Fluids. 2021; 6(9):326. https://doi.org/10.3390/fluids6090326

Chicago/Turabian Style

Yahia, Eman, William Schupbach, and Kannan N. Premnath. 2021. "Three-Dimensional Central Moment Lattice Boltzmann Method on a Cuboid Lattice for Anisotropic and Inhomogeneous Flows" Fluids 6, no. 9: 326. https://doi.org/10.3390/fluids6090326

APA Style

Yahia, E., Schupbach, W., & Premnath, K. N. (2021). Three-Dimensional Central Moment Lattice Boltzmann Method on a Cuboid Lattice for Anisotropic and Inhomogeneous Flows. Fluids, 6(9), 326. https://doi.org/10.3390/fluids6090326

Article Metrics

Back to TopTop