Abstract
Phase-field modeling is a popular front-tracking approach used to model solidification. Its time-evolution equations are often coupled to alloy composition and/or thermal diffusion in high-resolution multiphysics approaches. Materials thermodynamic properties tabulated in CALPHAD databases can be used for phase-field modeling to parameterize bulk energies of alloys. In addition, they can be naturally integrated into models such as the Kim-Kim-Suzuki (KKS) model where driving forces depend on the differences between chemical potentials of co-existing phases. In that case, a small system of coupled nonlinear equations needs to be solved at every point in space where the phase-field order parameter is to be updated and evolved in time. We present Thermo4PFM, a solver for the KKS equations for binary and ternary alloys, with two or three phases, and parameterized with CALPHAD models. Thermo4PFM is open source, written in C++, and can take advantage of Graphics Processing Units (GPU) accelerators. Using OpenMP offload capabilities for C++ classes, an excellent performance is demonstrated on GPU using the LLVM compiler. CALPHAD data is read from simple JSON files using an open source parser from the boost library. Program summary: Program Title: Thermo4PFM CPC Library link to program files: https://doi.org/10.17632/8j3ntp5c7k.1 Developer's repository link: https://github.com/ORNL/Thermo4PFM Licensing provisions: BSD 3-clause Programming language: C++/OpenMP Nature of problem: Accurate modeling of solidification in metallic alloys requires thermodynamic data associated with possible material phases. That data can be used in phase-field modeling (PFM) to evaluate the driving force responsible for phase changes and solidification front motion. Integrating that data into PFM requires the solution of a small system of coupled nonlinear differential equations — the Kim-Kim-Suzuki equations — that needs to be solved at every point of a discretization mesh. Solution method: Thermo4PFM implements a Newton-based solver for the Kim-Kim-Suzuki equations for a few special cases (binary and ternary alloys with two or three phases) for CALPHAD-based models of the bulk energy of the phases. The software is written in C++ and uses the Curiously Recurring Template Pattern and OpenMP offload capabilities to take advantage of GPU accelerators, when available, on modern High Performance Computing resources. It also uses the boost Property Tree library to parse input CALPHAD data.
| Original language | English |
|---|---|
| Article number | 108739 |
| Journal | Computer Physics Communications |
| Volume | 288 |
| DOIs | |
| State | Published - Jul 2023 |
Funding
We would like to thank Johannes Doefert and Joseph Huber for their help with the LLVM compiler infrastructure. 2D visualizations in Fig. 6 were generated using the VisIt software [43] . This research used resources of the Oak Ridge Leadership Computing Facility at the Oak Ridge National Laboratory, which is supported by the Office of Science of the U.S. Department of Energy under Contract No. DE-AC05-00OR22725 . This research was partially supported by the Exascale Computing Project ( 17-SC-20-SC ), a collaborative effort of the DOE Office of Science and the National Nuclear Security Administration (NNSA). This research was also partially supported by the U.S. Department of Energy Office of Energy Efficiency and Renewable Energy , Vehicle Technologies Office Propulsion Materials Program and the Advanced Manufacturing Office High-Performance Computing for Manufacturing ( HPC4MFG ) program. Work by A.P. was performed under the auspices of the U.S. Department of Energy by Lawrence Livermore National Laboratory under contract DE-AC52-07NA27344 , and supported by the Critical Materials Institute, an Energy Innovation Hub funded by the US Department of Energy , Office of Energy Efficiency and Renewable Energy, Advanced Materials and Manufacturing Technologies Office. This manuscript has been authored by UT-Battelle, LLC, under contract DE-AC05-00OR22725 with the US Department of Energy (DOE). The US government retains and the publisher, by accepting the article for publication, acknowledges that the US government retains a nonexclusive, paid-up, irrevocable, worldwide license to publish or reproduce the published form of this manuscript, or allow others to do so, for US government purposes. DOE will provide public access to these results of federally sponsored research in accordance with the DOE Public Access Plan (http://energy.gov/downloads/doe-public-access-plan).We would like to thank Johannes Doefert and Joseph Huber for their help with the LLVM compiler infrastructure. 2D visualizations in Fig. 6 were generated using the VisIt software [43]. This research used resources of the Oak Ridge Leadership Computing Facility at the Oak Ridge National Laboratory, which is supported by the Office of Science of the U.S. Department of Energy under Contract No. DE-AC05-00OR22725. This research was partially supported by the Exascale Computing Project (17-SC-20-SC), a collaborative effort of the DOE Office of Science and the National Nuclear Security Administration (NNSA). This research was also partially supported by the U.S. Department of Energy Office of Energy Efficiency and Renewable Energy, Vehicle Technologies Office Propulsion Materials Program and the Advanced Manufacturing Office High-Performance Computing for Manufacturing (HPC4MFG) program. Work by A.P. was performed under the auspices of the U.S. Department of Energy by Lawrence Livermore National Laboratory under contract DE-AC52-07NA27344, and supported by the Critical Materials Institute, an Energy Innovation Hub funded by the US Department of Energy, Office of Energy Efficiency and Renewable Energy, Advanced Materials and Manufacturing Technologies Office. This manuscript has been authored by UT-Battelle, LLC, under contract DE-AC05-00OR22725 with the US Department of Energy (DOE). The US government retains and the publisher, by accepting the article for publication, acknowledges that the US government retains a nonexclusive, paid-up, irrevocable, worldwide license to publish or reproduce the published form of this manuscript, or allow others to do so, for US government purposes. DOE will provide public access to these results of federally sponsored research in accordance with the DOE Public Access Plan ( http://energy.gov/downloads/doe-public-access-plan ).
Keywords
- CALPHAD
- Graphics Processing Units (GPU)
- Phase-field model