Stabilized FE simulation of prototype thermal-hydraulics problems with integrated adjoint-based capabilities

John N. Shadid, Thomas M. Smith, Eric C. Cyr, Tim Wildey, Roger P. Pawlowski

Introduction

Simulating the internal environment of a pressurized water reactor (PWR) is a formidable multiphysics challenge. It requires modeling turbulent fluid flow, heat transfer between fuel rods and coolant, and neutronics—all of which are deeply coupled. Researchers at Sandia National Laboratories have developed a robust framework to address these complexities, focusing on improving predictive reliability and reducing the computational burden of uncertainty quantification (UQ).

The Problem: Complexity and Cost

Engineers face two primary hurdles in reactor modeling. First, the computational cost of high-fidelity simulations makes it nearly impossible to perform the thousands of runs required for traditional UQ. Second, distinguishing between physical phenomena (like localized hot spots) and numerical artifacts caused by mesh resolution is difficult. Standard "black-box" simulation tools often fail to provide the necessary sensitivity data to overcome these issues efficiently.

Figure 1: Temperature distribution within a simulated 3x3 rod bundle, illustrating the complex thermal-hydraulics of a reactor core.

Methods: Stabilized Finite Elements and Integrated Adjoints

The proposed solution utilizes the Drekar::CFD framework, built on the Trilinos library. The core of the approach is a stabilized finite element (FE) method using Streamline-Upwind/Petrov-Galerkin (SUPG) and Pressure-Stabilized/Petrov-Galerkin (PSPG) formulations. These allow for stable, equal-order interpolation of velocity and pressure even in high Reynolds number turbulent flows.

The physical behavior is governed by the Reynolds-Averaged Navier-Stokes (RANS) equations, closed with the Spalart-Allmaras (SA) turbulence model.

Figure 3: The governing equations for continuity, momentum, and energy used in the stabilized FE framework.

A key technical innovation is the integration of Automatic Differentiation (AD) and Adjoint-Based Analysis. By solving a "dual" or adjoint version of the flow equations, the solver can simultaneously calculate the sensitivity of a specific Quantity of Interest (QoI)—such as peak temperature—to every input parameter. This integrated approach also facilitates rigorous numerical error estimation.

Validation and Key Insights

The framework was validated against several benchmarks, including laminar pipe and duct flows, and the CASL Test Case #2 (swirling turbulent flow).

  • Accuracy: The solver matched analytical Nusselt numbers for laminar flow within 0.6% to 1.5%.
  • Error Estimation: Adjoint-based error estimates showed an "effectivity ratio" near 1.01 in duct flow tests, indicating that the estimated error almost perfectly matches the true numerical error.
  • Gradient-Enhanced UQ: The most significant impact was seen in UQ. By using adjoint-based gradients to train Gaussian Process surrogate models, the researchers reduced the average relative error from 29% (standard model) to just 10% for a 6-dimensional turbulent pipe flow study.

Conclusion

This integrated adjoint-based framework represents a significant step forward in reactor simulation. By embedding sensitivity and error analysis directly into the solver, it enables more accurate and efficient predictive modeling. While current work focuses on steady-state RANS in prototype geometries, the scalability of the underlying Newton-Krylov solvers (tested up to $10^5$ cores) paves the way for future applications in full-scale, unsteady reactor core simulations.

Summary updated

Abstract

A critical aspect of applying modern computational solution methods to complex multiphysics systems of relevance to nuclear reactor modeling, is the assessment of the predictive capability of specific proposed mathematical models. In this respect the understanding of numerical error, the sensitivity of the solution to parameters associated with input data, boundary condition uncertainty, and mathematical models is critical. Additionally, the ability to evaluate and or approximate the model efficiently, to allow development of a reasonable level of statistical diagnostics of the mathematical model and the physical system, is of central importance. In this study we report on initial efforts to apply integrated adjoint-based computational analysis and automatic differentiation tools to begin to address these issues. The study is carried out in the context of a Reynolds averaged Navier–Stokes approximation to turbulent fluid flow and heat transfer using a particular spatial discretization based on implicit fully-coupled stabilized FE methods. Initial results are presented that show the promise of these computational techniques in the context of nuclear reactor relevant prototype thermal-hydraulics problems.
BibTeX
@article{shadid2016stabilized,
  author = {John N. Shadid and Thomas M. Smith and Eric C. Cyr and Tim Wildey and Roger P. Pawlowski},
  title = {{Stabilized FE simulation of prototype thermal-hydraulics problems with integrated adjoint-based capabilities}},
  journal = {Journal of Computational Physics},
  year = {2016},
  doi = {10.1016/j.jcp.2016.04.062},
}
Figure