++: Enhancing the capability and application of high-fidelity spectral/hp element methods

David Moxey, Chris D. Cantwell, Yan Bao, Andrea Cassinelli, Giacomo Castiglioni, Sehun Chun, Emilia Juda, Ehsan Kazemi, Kilian Lackhove, Julian Marcon, Gianmarco Mengaldo, Douglas Serson, Michael Turner, Hui Xu, Joaquim Peiró, Robert M. Kirby, Spencer J. SherwinComput. Phys. Commun 2020

TL;DR

Nektar++ version 5.0 significantly enhances its open-source spectral/hp element method framework, making high-fidelity simulations more accessible and efficient. This release introduces new numerical methods, improved software architecture for HPC, and user-friendly interfaces, enabling broader applications in fluid dynamics, aeroacoustics, and fluid-structure interaction.

What Problem Does This Paper Address?

High-order spectral/hp element methods offer superior accuracy and efficiency for complex simulations, particularly in fluid dynamics. However, their implementation is notoriously challenging, limiting their adoption by application domain experts. Nektar++ aims to bridge this gap by providing a flexible, scalable, and high-performance platform. This paper addresses the need for a more robust, efficient, and user-friendly version of Nektar++ by detailing the algorithmic, implementation, and application developments in its 5.0 release, tackling issues like complex geometries, parallel I/O, in-situ processing, and multi-solver coupling.

Methods

The paper details several key methodological advancements in Nektar++ v5.0:

  • Software Architecture: A significant shift towards C++11 features (smart pointers, auto, range-based for loops, variadic templates) has been implemented for cleaner, more efficient code.
  • Parallel I/O: The introduction of the HDF5 file format for mesh and data checkpoint files, combined with MPI I/O, significantly reduces bottlenecks compared to traditional XML formats, enabling faster setup and checkpointing for large-scale simulations.
  • In-situ Processing: Integration with the FieldConvert utility allows for data processing during the simulation, reducing storage requirements and enabling complex analyses that were previously infeasible.
  • Collections Library: This library optimizes linear algebra operations by grouping similar elements, enabling performance tuning for various hardware architectures through an autotuning strategy.
  • Solver Coupling: A new interface allows arbitrary variable fields to be exchanged between Nektar++ solvers and other applications (e.g., finite volume solvers) for multi-physics simulations, using CWIPI for communication.
  • Python Interface: High-level bindings to core Nektar++ libraries are provided, simplifying the learning curve for new users and enabling easier integration with Python-based scientific computing workflows.
  • Method of Moving Frames (MMF): A novel numerical scheme for solving PDEs on embedded curvilinear manifolds and domains, offering a more accurate and computationally efficient approach than traditional methods.
  • Spatially-Variable Polynomial Order: An adaptive procedure has been implemented that adjusts the polynomial order locally based on an error indicator, allowing for more efficient refinement in critical regions of the simulation domain.
  • Global Mapping: This technique allows for coordinate transformations to map non-homogeneous geometries to homogeneous ones, enabling the use of efficient quasi-3D simulations and handling moving boundaries.
  • NekMesh: A new high-order mesh generator that builds upon traditional linear mesh generation by adding high-order nodes to fit complex CAD geometries, incorporating advanced techniques for mesh validity and quality.
  • AcousticSolver: A new solver for aeroacoustic problems, implementing linearized Euler equations and acoustic perturbation equations for simulating noise emission.
  • 'Thick' Strip Model: A novel approach for fluid-structure interaction (FSI) problems, particularly for vortex-induced vibrations (VIV) of long flexible bodies, combining 2D spectral element methods with 1D Fourier expansions for efficient simulation.

Datasets

Not explicitly discussed as training datasets. The paper focuses on the framework's capabilities and demonstrates its use with various simulation examples, including:

  • Incompressible flow simulations.
  • Cardiac electrophysiology simulations.
  • Biological flows.
  • Aeroacoustic problems (e.g., spinning vortex pair).
  • Fluid-structure interaction (FSI) problems (e.g., vortex-induced vibration of a cylinder).
  • Turbomachinery flows (e.g., T106A turbine vane).
  • Shock-wave boundary layer interaction (SWBLI) test cases.

The paper also references existing benchmarks and datasets from previous work.

Key Insights and Ideas

  • Democratizing High-Fidelity Methods: The overarching theme is making advanced spectral/hp element methods accessible. The Python interface and improved documentation are crucial for lowering the barrier to entry.
  • HPC Optimization is Key: The focus on parallel I/O, in-situ processing, and the Collections library highlights the critical need to leverage modern HPC architectures effectively for large-scale simulations.
  • Geometry is a Major Hurdle: The development of NekMesh underscores the persistent challenge of generating high-quality, high-order meshes for complex geometries and the importance of robust CAD integration.
  • Novel Numerical Approaches for Specific Problems: The Method of Moving Frames (MMF) and the 'thick' strip model for FSI demonstrate how Nektar++ can be extended to tackle specialized physics problems on complex domains more effectively.
  • Adaptive Methods Pay Off: The implementation of spatially-variable polynomial order shows a practical way to achieve high accuracy where needed without the prohibitive cost of uniform refinement.

Key Results

  • Performance Improvements: The HDF5 format significantly speeds up parallel I/O, and the Collections library offers performance gains through optimized linear algebra operations.
  • Broader Applicability: The new solvers (AcousticSolver) and models ('thick' strip for FSI) expand the range of problems Nektar++ can address.
  • Enhanced Usability: The Python interface and improved documentation aim to drastically reduce the time for new users to become productive.
  • Accurate Simulations: The paper presents results demonstrating the accuracy of the new methods, such as the MMF scheme on spherical domains and the AcousticSolver's performance on a spinning vortex pair benchmark.
  • Efficient Meshing: NekMesh provides a robust tool for generating high-order meshes, with examples showing its capability for complex geometries like aerofoils and turbine blades.

Limitations and Future Work

  • HPC Efficiency: While significant progress has been made, the authors acknowledge that continued focus on efficient use of many-core CPU and GPU systems is needed. Research into matrix-free methods and performance-portable programming models is ongoing.
  • Mesh Generation Complexity: While NekMesh is a powerful tool, generating valid and high-quality meshes for extremely complex geometries remains a challenging area.
  • Autotuning for Collections: The autotuning strategy for the Collections library aims to identify the fastest evaluation strategy, but its effectiveness and robustness across all scenarios will be an area of continued development.
  • MMF Limitations: The MMF scheme is noted to be sensitive to the amplitude of waviness in certain applications, requiring careful consideration.
  • Future Code Development: The authors explicitly mention directions for future work, including further optimization for GPUs, exploring new programming models, and refining operators for spectral/hp element methods while maintaining ease of use.

Summary updated

BibTeX
@inproceedings{moxey2020enhancing,
  author = {David Moxey and Chris D. Cantwell and Yan Bao and Andrea Cassinelli and Giacomo Castiglioni and Sehun Chun and Emilia Juda and Ehsan Kazemi and Kilian Lackhove and Julian Marcon and Gianmarco Mengaldo and Douglas Serson and Michael Turner and Hui Xu and Joaquim Peiró and Robert M. Kirby and Spencer J. Sherwin},
  title = {{++: Enhancing the capability and application of high-fidelity spectral/hp element methods}},
  booktitle = {Comput. Phys. Commun},
  year = {2020},
  url = {https://openreview.net/forum?id=KFv5LYNTYt},
}
Figure