FC-based shock-dynamics solver with neural-network localized artificial-viscosity assignment

Daniel Leibovici, Oscar Bruno, Jan HesthavenOpenReview 2024

TL;DR

This paper introduces a novel numerical method, FC-SDNN, for solving complex fluid dynamics problems with shocks and discontinuities. By combining Fourier Continuation (FC) for spectral accuracy with a neural network (SDNN) to precisely control artificial viscosity, the method achieves sharp shock resolution and smooth solutions without spurious oscillations, outperforming existing techniques.

What Problem Does This Paper Address?

Simulating fluid flow governed by nonlinear conservation laws, especially those involving shock waves and discontinuities, is a significant challenge in computational fluid dynamics. Traditional numerical methods often struggle with these phenomena, leading to spurious oscillations (Gibbs phenomenon) that degrade solution accuracy and stability. Artificial viscosity methods are employed to mitigate these oscillations by introducing a dissipative term, but existing approaches often suffer from excessive dissipation in smooth regions or require problem-specific parameter tuning. Furthermore, handling non-periodic domains and arbitrary boundary conditions adds another layer of complexity. This paper aims to address these limitations by developing a method that provides spectral accuracy, sharp shock resolution, and smooth solutions across non-periodic domains without the need for manual parameter adjustments.

Methods

The core of the FC-SDNN method lies in its hybrid approach:

  • Fourier Continuation (FC): This technique is used for the spectral representation of non-periodic functions. Unlike standard Fourier methods that require periodicity, FC extends functions beyond their domain of definition in a way that allows for accurate spectral approximations on non-periodic domains and with arbitrary boundary conditions. This is crucial for achieving high accuracy and low dispersion.
  • Shock-Detecting Neural Network (SDNN): A neural network is trained to identify regions of discontinuity (shocks) in the flow. This network is trained on stencils derived from the flow's proxy variable (e.g., velocity or Mach number) and its smoothness classification.
  • Localized Artificial Viscosity: The SDNN's output is used to assign artificial viscosity only in the immediate vicinity of detected discontinuities. This is a key innovation. The viscosity term itself is designed to be smooth, preventing the introduction of further oscillations. This localized and smooth application of viscosity is what allows for sharp shock resolution while maintaining low dissipation in smooth flow regions.
  • Time Integration: The 4th-order Strong Stability Preserving Runge-Kutta (SSPRK-4) scheme is used for time discretization, chosen for its low temporal dispersion and diffusion.

The method also incorporates spectral filtering for global error control and a localized filtering strategy for initial conditions to prevent oscillations arising from sharp initial data.

Datasets

The paper does not explicitly mention the creation of new datasets. Instead, it utilizes a set of pre-defined analytic functions (f1 to f5) with varying parameters and associated "restriction domains" (subintervals of [0, 2π]) for training and validation of the neural network. These functions are designed to represent different types of discontinuities and smooth features relevant to fluid dynamics problems. The training and validation sets are derived from these functions.

Key Insights and Ideas

  • Neural Networks for Viscosity Control: The most significant insight is the effective use of a neural network to dynamically and precisely control the application of artificial viscosity. By learning to detect discontinuities, the SDNN allows for targeted dissipation only where it's needed, avoiding the global dissipation issues of other methods.
  • Smooth Localized Viscosity: The combination of a localized viscosity assignment with a smooth viscosity profile is crucial. This avoids the introduction of new oscillations that can arise from sharp, discontinuous viscosity terms.
  • FC for Non-Periodic Domains: The paper demonstrates the power of Fourier Continuation for handling non-periodic domains with arbitrary boundary conditions, a common limitation of standard spectral methods. This allows for more realistic simulations.
  • Problem-Independent Parameters: A major advantage highlighted is that the FC-SDNN method does not require problem-dependent algorithmic parameters for viscosity tuning, unlike methods like Entropy Viscosity (EV). This simplifies its application.

Key Results

The FC-SDNN method demonstrates:

  • Sharp Shock Resolution: Numerical results for linear advection, Burgers, and Euler equations show excellent resolution of shock waves and contact discontinuities.
  • Absence of Spurious Oscillations: The method effectively suppresses Gibbs oscillations, producing smooth level-set lines even in the presence of strong discontinuities.
  • Low Dissipation in Smooth Regions: Away from discontinuities, the method exhibits spectral accuracy and minimal dissipation, outperforming methods like FC-EV.
  • Accurate Solutions Over Long Times: For periodic problems, the FC-SDNN solution remains accurate over extended simulation times, showcasing its low dispersion characteristics.
  • Robustness: The method is shown to be effective for both 1D and 2D problems, including complex scenarios like shock-boundary interactions and multi-shock interactions.

Limitations and Future Work

  • Computational Cost: While the paper notes that FC implementations can be competitive, the neural network component adds computational overhead. The authors suggest that efficient implementations and the decreasing relative cost of the neural network with larger discretizations will mitigate this.
  • Extension to General Domains: The current FC-SDNN solver assumes domains defined by unions of horizontal and vertical straight segments. Extensions to more general domains (e.g., using embedded-boundary or overlapping patch strategies) are left for future work.
  • 3D Domains: The paper mentions that an efficient implementation for general 2D and 3D domains could be pursued on the basis of an overlapping-patch setup, indicating that 3D implementation is a future direction.
  • Initial Condition Filtering: While effective, the localized discontinuity-smearing for initial conditions is a separate step. Further integration or refinement of this process could be explored.

Summary updated

BibTeX
@misc{leibovici2024fc,
  author = {Daniel Leibovici and Oscar Bruno and Jan Hesthaven},
  title = {{FC-based shock-dynamics solver with neural-network localized artificial-viscosity assignment}},
  year = {2024},
  url = {https://openreview.net/forum?id=XZEyVOMFZR},
  howpublished = {OpenReview},
}
Figure