arXiv Science⌕ Search

arXiv · 2611.25565

A Heterogeneous CPU-GPU Framework for Finite Element Micromagnetic Simulations on Tetrahedral Meshes

Abstract

The design of magnetic storage materials relies on repeated micromagnetic simulations. Within each simulation, the demagnetization field evaluation and the sparse linear solve are executed at every time step and together dominate the computational cost. To address these bottlenecks, we develop a heterogeneous CPU-GPU framework that exploits the complementary computational capabilities of the two processors. In the existing AFEMAG solver, developed by Yang et al [J. Comput. Phys. 431 (2021) 110142], computationally intensive boundary integral evaluations and sparse linear solves limit performance. We offload these operations to the GPU while retaining assembly and iteration control on the CPU. We validate the framework using cases from all five $μ$Mag standard problems, covering quasistatic hysteresis, equilibrium configurations, field-driven dynamics, and spin-transfer-torque dynamics. This approach accelerates simulations across the benchmark suite; notably, for Standard Problem 3 on a mesh of 137,313 nodes, augmenting the CPU with one NVIDIA A100 GPU yields a $17.1\times$ speedup over the CPU-only configuration. The heterogeneous AFEMAG framework thus provides an efficient and practical platform for micromagnetic simulations in the design of magnetic storage materials.

Explore related subjects

Keep this discovery

Explore connections, maps & timelines

BibTeXRIS

Zekai Zheng, Zixuan Cui, Guanghui Hu. 2026-11-19. A Heterogeneous CPU-GPU Framework for Finite Element Micromagnetic Simulations on Tetrahedral Meshes. https://arxiv.science/abs/2611.25565

Citations retain the original authors and DOI and include this site’s record URL. If this discovery service contributed to your research, you can also cite arXiv Science by Indiciae: BibTeX · RIS.

KEEP EXPLORING

Related papers

Towards end-to-end optimization in multimaterial 3D printing

Multimaterial 3D printing enables the fabrication of functionally graded components, but optimizing their spatial material distribution alongside structural topology remains a formidable challenge due to high-dimensional design spaces and complex constitutive modeling. Using neural network constitutive laws in topology optimization requires their tangents and design sensitivities, which current approaches obtain by automatic differentiation through the network or derivation by hand. This paper combines sparsification, which reduces a trained physics-augmented neural network to a compact, interpretable closed-form law, with symbolic differentiation, enabling an end-to-end workflow from a new continuously varying multimaterial system to its mechanical simulation and design. By extracting closed-form, composition-aware hyperelastic constitutive laws from sparsified neural networks trained on experimental data, this approach facilitates exact symbolic differentiation of the terms required by the adjoint state method implemented with FEniCSx, circumventing the bottlenecks of applying neural network constitutive models in analysis and optimization. This pipeline is deployed on soft robotic gripper applications, demonstrating continuous composition optimization for highly anisotropic contact responses, and the concurrent optimization of macroscopic topology and material distribution under non-failure stretch constraints. This study is a step toward replacing conventional constitutive modeling and laborious empirical prototyping, establishing interpretable machine-learning models as practical, robust design primitives for advanced multimaterial additive manufacturing.

physics.comp-ph↗

Loss of positive definiteness as constraint relaxation in high-Weissenberg-number computations

Loss of symmetric positive definiteness (SPD) of the conformation tensor in high-Weissenberg-number computations signals that the discrete update has relaxed a constraint preserved by the continuum model. For periodic Oldroyd-B flows with nonnegative stress diffusion, a classical solution starting from uniformly SPD data remains strictly SPD. Polynomial-closure discretizations can produce negative eigenvalues from equilibrium data. For a uniform frozen state with solvent viscosity ratio $0<β<1$, nondiffusive transverse modes can grow only if $λ_{\min}(A)<-β/(1-β)$. Short-wave growth remains bounded, and stress diffusion confines growth to a finite wavenumber band. In two dimensions, constitutive relaxation contributes positively to the determinant balance where $\det A<0$ and $\mathrm{tr}(A)>0$. In lattice Boltzmann four-roll-mill simulations at $β=2/3$ and $\mathrm{Wi}=50$, time-consistent force-divergence coupling crosses the velocity stopping threshold even when the eigenvalues used to compute polymer stress stay strictly positive or above $-1$ up to that crossing. Guo force-divergence and local stress-moment schemes reach $t^*=120$ despite strongly negative eigenvalues. At $β=1/9$ under matched forcing, the unmodified stress-moment scheme terminates. Shifted-cone projection and a smooth softplus restoring source calibrated to $-β/(1-β)$ both sustain bounded unsteady flow to $t^*=120$ while admitting negative eigenvalues. These results link numerical breakdown to how far the local growth threshold is exceeded and how the discrete polymer stress feeds back into momentum.

physics.comp-ph↗

A branch-free three-dimensional ghost-cell immersed boundary method with direction-averaged extrapolation kernels

Ghost-cell immersed boundary methods impose the wall boundary condition on a Cartesian grid by assigning values to the grid points just inside the body, the ghost points. A common approach reconstructs the ghost value from an image point, which requires a wall normal for every ghost point. Special treatments are also often required where the interpolation stencil leaves the fluid region, e.g., near thin, concave or highly curved parts of complex bodies. We present a ghost-cell method that needs neither wall normals nor image points. Instead of a single extrapolation direction, the method uses all fluid nodes within 2.5 grid spacings of a ghost point that satisfy a simple geometric condition. The ghost value is obtained as the average of one-dimensional linear extrapolations from these nodes through the wall crossings of the connecting segments. The weights depend only on the geometry and are computed offline as one kernel on a $5 \times 5 \times 5$ stencil per ghost point. The boundary treatment at run time is thus an explicit, branch-free weighted sum. For the flows around a sphere and the Stanford Bunny, a self-convergence study shows approximately second-order convergence of the velocity in the $L_1$ and $L_2$ norms. The maximum difference also decreases at second order for the sphere but more slowly for the Stanford Bunny, where it is observed at a few nodes next to the wall. The drag coefficient of the sphere at Reynolds numbers of 25--200 agrees with a previous study within 2.4% for 32 grid cells per diameter and 0.4% for 64. For the Stanford Bunny at a Reynolds number of 100, the force coefficients agree with a body-fitted solution within 1% for 64 grid cells per reference length, without any geometry-specific treatment. Although no pressure condition is imposed on the wall, the pressure field is smooth and consistent with the body-fitted solution.

physics.comp-ph↗