Benchmarking for Fluid Simulation Computational Efficiency on CPU Platform
Yuchen Zhang, Xutun Wang, Quan Wen, Bing Wang
Key points
From the paper's conclusion- Python, although advantageous for prototyping, exhibits limited computational efficiency for intensive CFD tasks.
Abstract
This study presents a systematic benchmarking of programming languages and computational frameworks for computational fluid dynamics (CFD) simulations on CPU platforms. Using the Sod shock tube as a representative test case, the influence of programming languages and computational frameworks on computational efficiency was systematically evaluated while maintaining consistent numerical schemes and parallelization strategies. The evaluation compared Fortran, C++, and Python implementations, as well as the AMReX (Fortran and C++ interfaces) and JAX (Python interface) frameworks, under both finite difference (FDM) and finite volume (FVM) discretization. Results show that Fortran implementations perform better than C++ in procedural‐oriented FDM simulations, whereas C++ beats Fortran in object‐oriented FVM simulations. Python, although advantageous for prototyping, exhibits limited computational efficiency for intensive CFD tasks. In terms of parallelization, both OpenMP and MPI demonstrate strong performance; however, their sweet spots lie in different computational circumstances. At the framework level, AMReX consistently outperforms JAX, with the C++ interface showing the best overall performance. These findings underscore the intertwined impact of discretization methods, programming languages, and computational frameworks on CFD efficiency. The benchmarking provides actionable insights for selecting suitable programming paradigms and frameworks, with implications for optimizing next‐generation CFD applications on emerging hybrid hardware architectures such as GPUs and NPUs.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Workload-Based Hardware Selection for Separate CFD and DEM Benchmarks on CPUs and GPUsComputation · 2026
- Performance evaluation of high-order compact and second-order gas-kinetic schemes in compressible flow simulationsAdvances in Aerodynamics · 2026
- Performance Portability Explained: Insights from accelerating ICON microphysicsarXiv · 2026
- Comparative performance analysis of OpenCV and ArrayFire for computer vision systemsMATEC Web of Conferences · 2026
- Parallel Implementation and Cross-Platform Performance Evaluation of a Two-Dimensional Flood Inundation Model on Heterogeneous CPU and GPU ArchitecturesWater · 2026
- Multi-GPU acceleration of PALABOS fluid solver using C++ standard parallelismComputer Physics Communications · 2026