TY - JOUR
T1 - Automatic Differentiation in MetaPhysicL and Its Applications in MOOSE
AU - Lindsay, Alexander
AU - Stogner, Roy
AU - Gaston, Derek
AU - Schwen, Daniel
AU - Matthews, Christopher
AU - Jiang, Wen
AU - Aagesen, Larry
AU - Carlsen, Robert
AU - Kong, Fande
AU - Slaughter, Andrew
AU - Permann, Cody
AU - Martineau, Richard
N1 - Funding Information:
This work was sponsored in part by the U.S. Department of Energy (DOE), Office of Nuclear Energy, Nuclear Energy Advanced Modeling and Simulation program and Idaho National Laboratory’s Laboratory Directed Research & Development Program. Idaho National Laboratory, an affirmative action/equal opportunity employer, is operated by Battelle Energy Alliance under contract number DE-AC07-05ID14517. Los Alamos National Laboratory, an affirmative action/equal opportunity employer, is operated by Triad National Security, LLC, for the National Nuclear Security Administration of the DOE under contract number 89233218CNA000001.
Funding Information:
This work was sponsored in part by the U.S. Department of Energy (DOE), Office of Nuclear Energy, Nuclear Energy Advanced Modeling and Simulation program and Idaho National Laboratory?s Laboratory Directed Research & Development Program. Idaho National Laboratory, an affirmative action/equal opportunity employer, is operated by Battelle Energy Alliance under contract number DE-AC07-05ID14517. Los Alamos National Laboratory, an affirmative action/equal opportunity employer, is operated by Triad National Security, LLC, for the National Nuclear Security Administration of the DOE under contract number 89233218CNA000001.
Publisher Copyright:
© 2021 The Author(s). Published with license by Taylor & Francis Group, LLC.
PY - 2021/2/22
Y1 - 2021/2/22
N2 - Efficient solution via Newton’s method of nonlinear systems of equations requires an accurate representation of the Jacobian, corresponding to the derivatives of the component residual equations with respect to the degrees of freedom. In practice these systems of equations often arise from spatial discretization of partial differential equations used to model physical phenomena. These equations may involve domain motion or material equations that are complex functions of the systems’ degrees of freedom. Computing the Jacobian by hand in these situations is arduous and prone to error. Finite difference approximations of the Jacobian or its action are prone to truncation error, especially in multiphysics settings. Symbolic differentiation packages may be used, but often result in an excessive number of terms in realistic model scenarios. An alternative to symbolic and numerical differentiation is automatic differentiation (AD), which propagates derivatives with every elementary operation of a computer program, corresponding to continual application of the chain rule. Automatic differentiation offers the guarantee of an exact Jacobian at a relatively small overhead cost. In this work, we outline the adoption of AD in the Multiphysics Object Oriented Simulation Environment (MOOSE) via the MetaPhysicL package. We describe the application of MOOSE’s AD capability to several sets of physics that were previously infeasible to model via hand-coded or Jacobian-free simulation techniques, including arbitrary Lagrangian-Eulerian and level-set simulations of laser melt pools, phase-field simulations with free energies provided through neural networks, and metallic nuclear fuel simulations that require inner Newton loop calculation of nonlinear material properties.
AB - Efficient solution via Newton’s method of nonlinear systems of equations requires an accurate representation of the Jacobian, corresponding to the derivatives of the component residual equations with respect to the degrees of freedom. In practice these systems of equations often arise from spatial discretization of partial differential equations used to model physical phenomena. These equations may involve domain motion or material equations that are complex functions of the systems’ degrees of freedom. Computing the Jacobian by hand in these situations is arduous and prone to error. Finite difference approximations of the Jacobian or its action are prone to truncation error, especially in multiphysics settings. Symbolic differentiation packages may be used, but often result in an excessive number of terms in realistic model scenarios. An alternative to symbolic and numerical differentiation is automatic differentiation (AD), which propagates derivatives with every elementary operation of a computer program, corresponding to continual application of the chain rule. Automatic differentiation offers the guarantee of an exact Jacobian at a relatively small overhead cost. In this work, we outline the adoption of AD in the Multiphysics Object Oriented Simulation Environment (MOOSE) via the MetaPhysicL package. We describe the application of MOOSE’s AD capability to several sets of physics that were previously infeasible to model via hand-coded or Jacobian-free simulation techniques, including arbitrary Lagrangian-Eulerian and level-set simulations of laser melt pools, phase-field simulations with free energies provided through neural networks, and metallic nuclear fuel simulations that require inner Newton loop calculation of nonlinear material properties.
KW - Finite element method
KW - automatic differentiation, MOOSE
UR - http://www.scopus.com/inward/record.url?scp=85101285520&partnerID=8YFLogxK
U2 - 10.1080/00295450.2020.1838877
DO - 10.1080/00295450.2020.1838877
M3 - Article
AN - SCOPUS:85101285520
SN - 0029-5450
VL - 207
SP - 905
EP - 922
JO - Nuclear Technology
JF - Nuclear Technology
IS - 7
ER -