An efficient parallel spectral code for 3D periodic flow simulations
Kairzhan Karzhaubayev, Lian‐Ping Wang, Dauren B. Zhakebayev · SoftwareX · 2022
Numerical results from a spectral code are the defacto standard in CFD community for many fluid flow problems. Their popularity is motivated by the highest accuracy coupled with decent computational performance. In this work, we introduce the Fortran code based on a pseudospectral solver for tri-periodic flows. The code relies on the Fast Fourier Transform (FFT) and one of the fastest implementations of the FFT–FFTW Version 3. Code parallelization is performed using 2D domain decomposition and FFTW library. Whenever it is possible we tried to keep the code more explicit, even in cases which resulted in a bit more memory usage by allocating new memory for variables and arrays instead of reusing existing ones. Code validation was performed using results for a decaying 3D Taylor–Green vortex flow. In addition, the code was adapted to use the CUDA parallelization technology. The code can be used and extended by the research community for various periodic flow simulations. The availability of both CPU and GPU parallelized versions of the code provides additional flexibility in choosing the hardware platform.
Cited by 3 works. doi:10.1016/j.softx.2022.101244
Authors
References
- An Algorithm for the Machine Calculation of Complex Fourier Series
- Spectral Methods In Fluid Dynamics
- NetCDF: an interface for scientific data access
- Mechanism of the production of small eddies from large ones
- Numerical Methods for the Simulation of Turbulence
- The DFT: An Owner's Manual for the Discrete Fourier Transform
- Small-scale features of vorticity and passive scalar fields in homogeneous isotropic turbulence
- Study of High–Reynolds Number Isotropic Turbulence by Direct Numerical Simulation
- The evolution of small-scale structures in homogeneous isotropic turbulence
- Parallel implementation and scalability analysis of 3D Fast Fourier Transform using 2D domain decomposition