The traditional multi-level grid multiple-relaxation-time lattice Boltzmann method (MRT-LBM) requires interpolation calculations in time and space. It is a complex and computationally intensive process. By using the buffer technique, this paper proposes a new multi-level grid MRT-LBM which requires only spatial interpolation calculations. The proposed method uses a center point format to store multi-level grid information. The grid type determination in the flow field calculation domain is done using the axis aligned bounding box (AABB) triangle overlap test. According to the calculation characteristics of MRT-LBM, the buffer grid is proposed for the first time at the interface of different levels of grids, which is used to remove the temporal interpolation calculation and simplify the spatial interpolation calculation. The corresponding multi-level grid MRT-LBM algorithm is also presented for two-dimensional and three-dimensional flow field calculation problems. For the two-dimensional problem of flow around a circular cylinder, the simulation results show that a four-level grid MRT-LBM proposed in this paper can accurately obtain the aerodynamic coefficients and Strouhal number at different Reynolds numbers, and it has about 1/9 of the total number of grids as a single-level grid MRT-LBM and is 6.76 times faster. For the three-dimensional flow calculation problem, the numerical experiments of flow past a sphere are simulated to verify the numerical precision of the presented method at Reynolds numbers = 100, 200, 250, 300, and 1000. With the streamlines and velocity contours, it is demonstrated that the multi-level grid MRT-LBM can be calculated accurately even at the interface of different size grids.
Mesh quality is a major factor affecting the structure of computational fluid dynamics (CFD) calculations. Traditional mesh quality evaluation is based on the geometric factors of the mesh cells and does not effectively take into account the defects caused by the integrity of the mesh. Ensuring the generated meshes are of sufficient quality for numerical simulation requires considerable intervention by CFD professionals. In this paper, a Transformer-based network for automatic mesh quality evaluation (Gridformer), which translates the mesh quality evaluation into an image classification problem, is proposed. By comparing different mesh features, we selected the three features that highly influence mesh quality, providing reliability and interpretability for feature extraction work. To validate the effectiveness of Gridformer, we conduct experiments on the NACA-Market dataset. The experimental results demonstrate that Gridformer can automatically identify mesh integrity quality defects and has advantages in computational efficiency and prediction accuracy compared to widely used neural networks. Furthermore, a complete workflow for automatic generation of high-quality meshes based on Gridformer was established to facilitate automated mesh generation. This workflow can produce a high-quality mesh with a low-quality mesh input through automatic evaluation and optimization cycles. The preliminary implementation of automated mesh generation proves the versatility of Gridformer.
27 August 2020 in Mathematical Problems in Engineering
Immersed boundary-lattice Boltzmann method (IB-LBM) has become a popular method for studying fluid-structure interaction (FSI) problems. However, the performance issues of the IB-LBM have to be considered when simulating the practical problems. The Graphics Processing Units (GPUs) from NVIDIA offer a possible solution for the parallel computing, while the CPU is a multicore processor that can also improve the parallel performance. This paper proposes a parallel algorithm for IB-LBM on a CPU-GPU heterogeneous platform, in which the CPU not only controls the launch of the kernel function but also performs calculations. According to the relatively local calculation characteristics of IB-LBM and the features of the heterogeneous platform, the flow field is divided into two parts: GPU computing domain and CPU computing domain. CUDA and OpenMP are used for parallel computing on the two computing domains, respectively. Since the calculation time is less than the data transmission time, a buffer is set at the junction of two computational domains. The size of the buffer determines the number of the evolution of the flow field before the data exchange. Therefore, the number of communications can be reduced by increasing buffer size. The performance of the method was investigated and analyzed using the traditional metric MFLUPS. The new algorithm is applied to the computational simulation of red blood cells (RBCs) in Poiseuille flow and through a microchannel.
The large-scale numerical simulation of complex flows has been an important research area in scientific and engineering computing. The lattice Boltzmann method (LBM) as a mesoscopic method for solving flow field problems has become a relatively new research direction in computational fluid dynamics. The multi-layer grid-refinement strategy deals with different-level of computing complexity through multi-scale grids, which can be used to solve the complex flow field of the non-uniform grid LBM without destroying the parallelism of the standard LBM. It also avoids the inefficiencies and waste of computational resources associated with standard LBMs using uniform and homogeneous Cartesian grids. This paper proposed a multi-layer grid-refinement strategy for LBM and implemented the corresponding parallel algorithm with load balancing. Taking a parallel scheme for two-dimensional non-uniform meshes as an example, this method presented the implementation details of the proposed parallel algorithm, including a partitioning scheme for evaluating the load in a one-dimensional direction and an interpolation scheme based on buffer optimization. Simply by expanding the necessary data transfer of distribution functions and macroscopic quantities for non-uniform grids in different parallel domains, our method could be used to conduct numerical simulations of the flow field problems with complex geometry and achieved good load-balancing results. Among them, the weak scalability performance could be as high as 88.90% in a 16-threaded environment, while the numerical simulation with a specific grid structure still had a parallel efficiency of 77.4% when the parallel domain was expanded to 16 threads.
In biomass estimation based on size-related features, regression models are commonly used to predict fish mass. However, in real-world scenarios, fish are often partially occluded by others, resulting in missing or corrupted features. To address this issue, we propose a robust framework that integrates feature imputation with regression. Missing features are first reconstructed through imputation, followed by regression for biomass prediction. We evaluated various imputation and regression methods and found that the autoencoder achieved the best performance in imputation. Among regression models, SVR, Extra Trees, and MLP performed best in their respective categories. These three models, combined with the autoencoder, were selected to construct the final framework. Experimental results demonstrate that the proposed framework significantly improves performance. For instance, the RMSE of SVR, Extra Trees, and MLP decreased from 21.10 g, 2.49 g, and 18.40 g to 6.53 g, 1.95 g, and 5.09 g, respectively.
Underwater image enhancement (UIE) technology plays a vital role in marine resource exploration, environmental monitoring, and underwater archaeology. However, due to the absorption and scattering of light in underwater environments, images often suffer from blurred details, color distortion, and low contrast, which seriously affect the usability of underwater images. To address the above limitations, a lightweight transformer-based model (LITM) is proposed for improving underwater degraded images. Firstly, our proposed method utilizes a lightweight RGB transformer enhancer (LRTE) that uses efficient channel attention blocks to capture local detail features in the RGB domain. Subsequently, a lightweight HSV transformer encoder (LHTE) is utilized to extract global brightness, color, and saturation from the hue–saturation–value (HSV) domain. Finally, we propose a multi-modal integration block (MMIB) to effectively fuse enhanced information from the RGB and HSV pathways, as well as the input image. Our proposed LITM method significantly outperforms state-of-the-art methods, achieving a peak signal-to-noise ratio (PSNR) of 26.70 and a structural similarity index (SSIM) of 0.9405 on the LSUI dataset. Furthermore, the designed method also exhibits good generality and adaptability on unpaired datasets.