SearcharxivSearch

arXiv subjects

Zirui Mao

Publications and source records attributed to Zirui Mao.

6 recordsLinked to original sources

An adaptive phase field framework for large-scale interface evolution problems using a strong-form gradient smoothing approach

Multiscale problems with evolving interfaces are ubiquitous in science and engineering. Phase-field models are a powerful tool for simulating interface-dominated phenomena in computational mechanics and materials modeling, but their application to large-scale problems is often constrained by the high computational cost of resolving thin diffuse interfaces over the entire domain. This paper presents an efficient strong-form phase-field solver that couples the Gradient Smoothing Method (GSM) with a hierarchical adaptive and moving structured mesh, enabling automatic localization of resolution within a narrow interfacial region while retaining coarse discretization in bulk domains. A layered refinement design is introduced to preserve locally uniform resolution across the interface, allowing the GSM discretization to maintain overall second-order accuracy despite strong mesh non-uniformity away from the interface. Although GSM incurs a higher per-degree-of-freedom cost than standard finite-difference schemes, the adaptive framework substantially reduces the total number of degrees of freedom, resulting in near-linear computational scaling compared with the quadratic scaling of uniform-grid approaches. Numerical examples based on the Allen-Cahn and Cahn-Hilliard equations demonstrate that the proposed adaptive GSM solver delivers desired accuracy for interface evolution while attaining more favorable computational complexity, O(N), than existing weak-form and strong-form solvers, becoming significantly more efficient for large-scale problems with thin interfaces or a small interfacial area fraction relative to the whole domain.

math.NA

A GPU accelerated mixed-precision Finite Difference informed Random Walker (FDiRW) solver for strongly inhomogeneous diffusion problems

In nature, many complex multi-physics coupling problems exhibit significant diffusivity inhomogeneity, where one process occurs several orders of magnitude faster than others in temporal. Simulating rapid diffusion alongside slower processes demands intensive computational resources due to the necessity for small time steps. To address these computational challenges, we have developed an efficient numerical solver named Finite Difference informed Random Walker (FDiRW). In this study, we propose a GPU-accelerated, mixed-precision configuration for the FDiRW solver to maximize efficiency through GPU multi-threaded parallel computation and lower precision computation. Numerical evaluation results reveal that the proposed GPU-accelerated mixed-precision FDiRW solver can achieve a 117X speedup over the CPU baseline, while an additional 1.75X speedup by employing lower precision GPU computation. Notably, for large model sizes, the GPU-accelerated mixed-precision FDiRW solver demonstrates strong scaling with the number of nodes used in simulation. When simulating radionuclide absorption processes by porous wasteform particles with a medium-sized model of 192x192x192, this approach reduces the total computational time to 10 minutes, enabling the simulation of larger systems with strongly inhomogeneous diffusivity.

math.NA

Non-uniform mesh based FDM simulation of lid-driven cavity problem governed by N-S equations in stream function-vorticity formulation

In this paper, the driven cavity problem was solved using finite difference scheme in stream function-vorticity formulation. A variable grid is adopted to capture more details and information in the area nearby the wall. The Navier-Stokes equation is rewritten as a particular form suitable to the variable grids. In simulation, Reynolds number is set 100 as an example. The velocity, vorticity and streamline contour are produced by the CFD scheme developed in this paper and then are compared with those by Ghia et. al. (1982) to validate this numerical scheme. It shows that the numerical CFD scheme developed in this paper works very well for both uniform grids and variable grids. The numerical tests with different grids setting show that a) the variable grids have advantages in capturing the reversed flow and separation bubbles produced in the corners associated with a good efficiency, b) the numerical schemes with symmetric and dense grids gives a more accurate solution than those with non-symmetric and sparse grids, and c) both the vorticity and stream function have a better accuracy than velocity.

physics.flu-dyn

A GPU accelerated mixed-precision Smoothed Particle Hydrodynamics framework with cell-based relative coordinates

Smoothed Particle Hydrodynamics (SPH) is essential for modeling complex large-deformation problems across various applications, requiring significant computational power. A major portion of SPH computation time is dedicated to the Nearest Neighboring Particle Search (NNPS) process. While advanced NNPS algorithms have been developed to enhance SPH efficiency, the potential efficiency gains from modern computation hardware remain underexplored. This study investigates the impact of GPU parallel architecture, low-precision computing on GPUs, and GPU memory management on NNPS efficiency. Our approach employs a GPU-accelerated mixed-precision SPH framework, utilizing low-precision float-point 16 (FP16) for NNPS while maintaining high precision for other components. To ensure FP16 accuracy in NNPS, we introduce a Relative Coordinated-based Link List (RCLL) algorithm, storing FP16 relative coordinates of particles within background cells. Our testing results show three significant speedup rounds for CPU-based NNPS algorithms. The first comes from parallel GPU computations, with up to a 1000x efficiency gain. The second is achieved through low-precision GPU computing, where the proposed FP16-based RCLL algorithm offers a 1.5x efficiency improvement over the FP64-based approach on GPUs. By optimizing GPU memory bandwidth utilization, the efficiency of the FP16 RCLL algorithm can be further boosted by 2.7x, as demonstrated in an example with 1 million particles. Our code is released at https://github.com/pnnl/lpNNPS4SPH.

cs.DC

An Efficient Finite Difference-based Implicit Solver for Phase-Field Equations with Spatially and Temporally Varying Parameters

The phase field method is an effective tool for modeling microstructure evolution in materials. Many efficient implicit numerical solvers have been proposed for phase field simulations under uniform and time-invariant model parameters. We use Eyre's theorem to develop an unconditionally stable implicit solver for spatially non-uniform and time-varying model parameters. The accuracy, unconditional stability, and efficiency of the solver is validated against benchmarking examples. In its current form, the solver requires a uniform mesh and may only be applied to problems with periodic, Neumann, or mixed periodic and Neumann boundary conditions.

math.NA

Optimal Control of Material Micro-Structures

In this paper, we consider the optimal control of material micro-structures. Such material micro-structures are modeled by the so-called phase field model. We study the underlying physical structure of the model and propose a data based approach for its optimal control, along with a comparison to the control using a state of the art Reinforcement Learning (RL) algorithm. Simulation results show the feasibility of optimally controlling such micro-structures to attain desired material properties and complex target micro-structures.

eess.SY