journal article·2020-03-26Open access

PRISMS-PF: A general framework for phase-field modeling with a matrix-free finite element method

Stephen DeWitt, Shiva Rudraraju, David Montiel, W. Beck Andrews, Katsuyo Thornton

npj Computational Materials· Volume 6· Issue 1

Abstract

Abstract A new phase-field modeling framework with an emphasis on performance, flexibility, and ease of use is presented. Foremost among the strategies employed to fulfill these objectives are the use of a matrix-free finite element method and a modular, application-centric code structure. This approach is implemented in the new open-source PRISMS-PF framework. Its performance is enabled by the combination of a matrix-free variant of the finite element method with adaptive mesh refinement, explicit time integration, and multilevel parallelism. Benchmark testing with a particle growth problem shows PRISMS-PF with adaptive mesh refinement and higher-order elements to be up to 12 times faster than a finite difference code employing a second-order-accurate spatial discretization and first-order-accurate explicit time integration. Furthermore, for a two-dimensional solidification benchmark problem, the performance of PRISMS-PF meets or exceeds that of phase-field frameworks that focus on implicit/semi-implicit time stepping, even though the benchmark problem’s small computational size reduces the scalability advantage of explicit time-integration schemes. PRISMS-PF supports an arbitrary number of coupled governing equations. The code structure simplifies the modification of these governing equations by separating their definition from the implementation of the numerical methods used to solve them. As part of its modular design, the framework includes functionality for nucleation and polycrystalline systems available in any application to further broaden the phenomena that can be used to study. The versatility of this approach is demonstrated with examples from several common types of phase-field simulations, including coarsening subsequent to spinodal decomposition, solidification, precipitation, grain growth, and corrosion.
Source: crossref · Quality: baseline

Research context

OpenAlex topics: Aluminum Alloy Microstructure Properties · Solidification and crystal growth phenomena · Metallurgical Processes and Thermodynamics

SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.

References (70)

Show source-provided references
1. Moelans, N., Blanpain, B. & Wollants, P. An introduction to phase-field modeling of microstructure evolution. Calphad Comput. Coupling Phase Diagr. Thermochem. 32, 268–294 (2008).10.1016/j.calphad.2007.11.003 ↗
2. Shen, C. & Wang, Y. Phase-field microstructure modeling. in ASM Handbook. Vol. 22A (eds Furrer, D. U. & Semiatin, S. L.) 297–308 (ASM International, 2009).10.31399/asm.hb.v22a.a0005415 ↗
3. Chen, L. Q. Phase-field models for microstructure evolution. Annu. Rev. Mater. Sci. 32, 113–140 (2002).10.1146/annurev.matsci.32.112001.132041 ↗
4. Emmerich, H. Advances of and by phase-field modelling in condensed-matter physics. Adv. Phys. 57, 1–87 (2008).10.1080/00018730701822522 ↗
5. Provatas, N. & Elder, K. Phase-Field Methods in Materials Science and Engineering (Wiley-VCH, 2010).10.1002/9783527631520 ↗
6. Steinbach, I. Phase-field models in materials science. Model. Simul. Mater. Sci. Eng. 17, 073001 (2009).10.1088/0965-0393/17/7/073001 ↗
7. DeWitt, S. & Thornton, K. Phase field modeling of microstructural evolution. in Computational Materials System Design (eds Shin, D. & Saal, J.) 67–87 (Springer, Cham, 2018).10.1007/978-3-319-68280-8_4 ↗
8. Tonks, M. R. & Aagesen, L. K. The phase field method: mesoscale simulation aiding material discovery. Annu. Rev. Mater. Res. 49, 79–102 (2019).10.1146/annurev-matsci-070218-010151 ↗
9. Poulsen, S. O. & Voorhees, P. W. Early stage phase separation in ternary alloys: a test of continuum simulations. Acta Mater. 113, 98–108 (2016).10.1016/j.actamat.2016.04.054 ↗
10. Takaki, T. et al. Primary arm array during directional solidification of a single-crystal binary alloy: large-scale phase-field study. Acta Mater. 118, 230–243 (2016).10.1016/j.actamat.2016.07.049 ↗
11. Plapp, M. & Karma, A. Multiscale finite-difference-diffusion-Monte-Carlo method for simulating dendritic solidification. J. Comput. Phys. 165, 592–619 (2000).10.1006/jcph.2000.6634 ↗
12. Plapp, M. & Karma, A. Multiscale random-walk algorithm for simulating interfacial pattern formation. Phys. Rev. Lett. 84, 1740–1743 (2000).10.1103/PhysRevLett.84.1740 ↗
13. Greenwood, M. et al. Quantitative 3D phase field modelling of solidification using next-generation adaptive mesh refinement. Comput. Mater. Sci. 142, 153–171 (2018).10.1016/j.commatsci.2017.09.029 ↗
14. Provatas, N., Goldenfeld, N. & Dantzig, J. Efficient computation of dendritic microstructures using adaptive mesh refinement. Phys. Rev. Lett. 80, 3308–3311 (1998).10.1103/PhysRevLett.80.3308 ↗
15. Hötzer, J., Kellner, M., Steinmetz, P., Dietze, J. & Nestler, B. Large-scale phase-field simulations of directional solidified ternary eutectics using high-performance computing. In High Performance Computing in Science and Engineering ’16: Transactions of the High Performance Computing Center Stuttgart (HLRS) 2016 (eds Nagel, W., Kröner, D., & Resch, M.) 635–646 (Springer, Cham, 2017).10.1007/978-3-319-47066-5_43 ↗
16. Hötzer, J. et al. Application of large-scale phase-field simulations in the context of high-performance computing. In High Performance Computing in Science and Engineering ’15: Transactions of the High Performance Computing Center, Stuttgart (HLRS) 2015 (eds Nagel, W., Kröner, D., & Resch M.) 659–674 (Springer, Cham, 2016).
17. Hötzer, J. et al. The parallel multi-physics phase-field framework PACE3D. J. Comput. Sci. 26, 1–12 (2018).10.1016/j.jocs.2018.02.011 ↗
18. Guyer, J. E., Wheeler, D. & Warren, J. A. FiPy: partial differential equations with python. Comput. Sci. Eng. 11, 6–15 (2009).10.1109/MCSE.2009.52 ↗
19. Gaston, D., Newman, C., Hansen, G. & Lebrun-Grandié, D. MOOSE: a parallel computational framework for coupled systems of nonlinear equations. Nucl. Eng. Des. 239, 1768–1778 (2009).10.1016/j.nucengdes.2009.05.021 ↗
20. Tonks, M. R., Gaston, D., Millett, P. C., Andrs, D. & Talbot, P. An object-oriented finite element framework for multiphysics phase field simulations. Comput. Mater. Sci. 51, 20–29 (2012).10.1016/j.commatsci.2011.07.028 ↗
21. Schwen, D., Aagesen, L. K., Peterson, J. W. & Tonks, M. R. Rapid multiphase-field model development using a modular free energy based approach with automatic differentiation in MOOSE/MARMOT. Comput. Mater. Sci. 132, 36–45 (2017).10.1016/j.commatsci.2017.02.017 ↗
22. Tegeler, M. et al. Parallel multiphase field simulations with OpenPhase. Comput. Phys. Commun. 215, 173–187 (2017).10.1016/j.cpc.2017.01.023 ↗
23. Dorr, M. R., Fattebert, J.-L., Wickett, M. E., Belak, J. F. & Turchi, P. E. A. A numerical algorithm for the solution of a phase-field model of polycrystalline materials. J. Comput. Phys. 229, 626–641 (2010).10.1016/j.jcp.2009.09.041 ↗
24. MMSP GitHub Repository. https://github.com/mesoscale/mmsp (2019).
25. Aagesen, L. et al. PRISMS—an integrated, open source framework for accelerating predictive structural materials science. JOM 70, 2298–2314 (2018).10.1007/s11837-018-3079-6 ↗
26. Puchala, B. et al. The materials commons: a collaboration platform and information repository for the global materials community. JOM 68, 1–10 (2016).10.1007/s11837-016-1998-7 ↗
27. PFHub Benchmark Problem 3. https://pages.nist.gov/pfhub/benchmarks/benchmark3.ipynb/ (2019).
28. Jokisaari, A. M., Voorhees, P. W., Guyer, J. E., Warren, J. A. & Heinonen, O. G. Phase field benchmark problems for dendritic growth and linear elasticity. Comput. Mater. Sci. 149, 336–347 (2018).10.1016/j.commatsci.2018.03.015 ↗
29. Boettinger, W. J., Warren, J. A., Beckermann, C. & Karma, A. Phase-field simulation of solidification 1. Annu. Rev. Mater. Res. 32, 163–194 (2002).10.1146/annurev.matsci.32.101901.155803 ↗
30. Andrews, W. B., Elder, K. L. M., Voorhees, P. W. & Thornton, K. Coarsening of bicontinuous microstructures via surface diffusion. Preprint at http://arxiv.org/abs/2002.09428 (2020).
31. DeWitt, S. et al. Misfit-driven β′′′ precipitate composition and morphology in Mg-Nd alloys. Acta Mater. 136, 378–389 (2017).10.1016/j.actamat.2017.06.053 ↗
32. Kim, S. G., Kim, W. T. & Suzuki, T. Phase-field model for binary alloys. Phys. Rev. E 60, 7186–7197 (1999).10.1103/PhysRevE.60.7186 ↗
33. Permann, C. J., Tonks, M. R., Fromm, B. & Gaston, D. R. Order parameter re-mapping algorithm for 3D phase field model of grain growth using FEM. Comput. Mater. Sci. 115, 18–25 (2016).10.1016/j.commatsci.2015.12.042 ↗
34. Fan, D., Chen, S. P., Chen, L.-Q. & Voorhees, P. W. Phase-field simulation of {2-D} Ostwald ripening in the high volume fraction regime. Acta Mater. 50, 1895–1907 (2002).10.1016/S1359-6454(01)00393-7 ↗
35. Groeber, M. A. & Jackson, M. A. DREAM.3D: a digital representation environment for the analysis of microstructure in 3D. Integr. Mater. Manuf. Innov. 3, 56–72 (2014).10.1186/2193-9772-3-5 ↗
36. Chadwick, A. F., Stewart, J. A., Enrique, R. A., Du, S. & Thornton, K. Numerical modeling of localized corrosion using phase-field and smoothed boundary methods. J. Electrochem. Soc. 165, C633–C646 (2018).10.1149/2.0701810jes ↗
37. Yu, H.-C., Chen, H.-Y. & Thornton, K. Extended smoothed boundary method for solving partial differential equations with general boundary conditions on complex boundaries. Model. Simul. Mater. Sci. Eng. 20, 075008 (2012).10.1088/0965-0393/20/7/075008 ↗
38. Putti, M. & Paniconi, C. Picard and Newton linearization for the coupled model for saltwater intrusion in aquifers. Adv. Water Resour. 18, 159–170 (1995).10.1016/0309-1708(95)00006-5 ↗
39. Porter, D. A. & Easterling, K. E. Phase Transformations in Metals and Alloys (Van Nostrand Reinhold Company, 1981).
40. Kobayashi, R. Modeling and numerical simulations of dendritic crystal growth. Phys. D. Nonlinear Phenom. 63, 410–423 (1993).10.1016/0167-2789(93)90120-P ↗
41. Wise, S. M. et al. Quantum dot formation on a strain-patterned epitaxial thin film. Appl. Phys. Lett. 87, 1–3 (2005).
42. Salvalaglio, M., Backofen, R., Bergamaschini, R., Montalenti, F. & Voigt, A. Faceting of equilibrium and metastable nanostructures: a phase-field model of surface diffusion tackling realistic shapes. Cryst. Growth Des. 15, 2787–2794 (2015).10.1021/acs.cgd.5b00165 ↗
43. DeWitt, S. & Gentry, S. PRISMS-PF: Equilibrium Shape for a Misfitting Precipitate. https://nanohub.org/resources/prismspfmisfit (2019).
44. Rappture Homepage. https://nanohub.org/infrastructure/rappture (2019).
45. Yaghoobi, M. et al. PRISMS-plasticity: an open-source crystal plasticity finite element software. Comput. Mater. Sci. 169, 109078 (2019).10.1016/j.commatsci.2019.109078 ↗
46. CASM GitHub Repository, v0.1.0. https://github.com/prisms-center/CASMcode (2015).
47. PRISMS-PF GitHub Repository. https://github.com/prisms-center/phaseField (2019).
48. Bangerth, W., Hartmann, R. & Kanschat, G. deal.II—a general-purpose object-oriented finite element library. ACM Trans. Math. Softw. 33, 24-es (2007).10.1145/1268776.1268779 ↗
49. DeWitt, S. PRISMS-PF User Manual v2.1. https://prisms-center.github.io/phaseField/doxygen_files/manual.html (2018).
50. Kronbichler, M. & Kormann, K. A generic interface for parallel cell-based finite element operator application. Comput. Fluids 63, 135–147 (2012).10.1016/j.compfluid.2012.04.012 ↗
51. Press, W. H., Teukolsky, S. A., Vetterling, Wi. T. & Flannery, B. P. Numerical Recipies (Cambridge University Press, 2007).
52. Hirsch, C. Numerical Computation of Internal and External Flows: The Fundamentals of Computational Fluid Dynamics (Butterworth-Heinemann, 2007).
53. Tóth, G., De Zeeuw, D. L., Gombosi, T. I. & Powell, K. G. A parallel explicit/implicit time stepping scheme on block-adaptive grids. J. Comput. Phys. https://doi.org/10.1016/j.jcp.2006.01.029 (2006).10.1016/j.jcp.2006.01.029 ↗
54. Gruber, R., Ahusborde, E., Azaïez, M., Keller, V. & Latt, J. High performance computing for partial differential equations. Comput. Fluids. https://doi.org/10.1016/j.compfluid.2010.07.001 (2011).10.1016/j.compfluid.2010.07.001 ↗
55. Zhang, J. et al. Extreme-scale phase field simulations of coarsening dynamics on the sunway TaihuLight supercomputer. SC ‘16: Proceedings of the International Conference for High Performance Computing, Networking, Storage and Analysis. 34–45 (2016).10.1109/SC.2016.3 ↗
56. Tennyson, P. G., Karthik, G. M. & Phanikumar, G. MPI + OpenCL implementation of a phase-field method incorporating CALPHAD description of Gibbs energies on heterogeneous computing platforms. Comput. Phys. Commun. https://doi.org/10.1016/j.cpc.2014.09.014 (2015).10.1016/j.cpc.2014.09.014 ↗
57. Kelley, C. T. Iterative Methods for Linear and Nonlinear Equations (Society for Industrial and Applied Mathematics, 1995).10.1137/1.9781611970944 ↗
58. Pyzara, A., Bylina, B. & Bylina, J. The influence of a matrix condition number on iterative methods’ convergence. Proc. Fed. Conf. Comput. Sci. Inf. Syst. 459–464 (2011).
59. Keyes, D. E. et al. Multiphysics simulations. Int. J. High. Perform. Comput. Appl. 27, 4–83 (2013).10.1177/1094342012468181 ↗
60. Rosam, J., Jimack, P. K. & Mullis, A. A fully implicit, fully adaptive time and space discretisation method for phase-field simulation of binary alloy solidification. J. Comp. Phys. 225, 1271–1287 (2007).10.1016/j.jcp.2007.01.027 ↗
61. Shimokawabe, T. et al. Peta-scale phase-field simulation for dendritic solidification on the TSUBAME 2.0 supercomputer. SC ‘11: Proceedings of 2011 International Conference for High Performance Computing, Networking, Storage and Analysis. 1–11 (2011).10.1145/2063384.2063388 ↗
62. Burstedde, C., Wilcox, L. C. & Ghattas, O. p4est: scalable algorithms for parallel adaptive mesh refinement on forests of octrees. SIAM J. Sci. Comput. 33, 1103–1133 (2011).10.1137/100791634 ↗
63. Reinders, J. Intel threading building blocks: outfitting C++ for multi-core processor parallelism. J. Comput. Sci. Coll. https://doi.org/10.1145/1559764.1559771 (2007).10.1145/1559764.1559771 ↗
64. Bangerth, W., Burstedde, C., Heister, T. & Kronbichler, M. Algorithms and data structures for massively parallel generic adaptive finite element codes. ACM Trans. Math. Softw. 38, 14 (2011).10.1145/2049673.2049678 ↗
65. Simmons, J. P., Shen, C. & Wang, Y. Phase field modeling of simultaneous nucleation and growth by explicitly incorporating nucleation events. Scr. Mater. 43, 935–942 (2000).10.1016/S1359-6462(00)00517-0 ↗
66. Jokisaari, A. M., Permann, C. & Thornton, K. A nucleation algorithm for the coupled conserved-nonconserved phase field model. Comput. Mater. Sci. 112, 128–138 (2016).10.1016/j.commatsci.2015.10.009 ↗
67. Krill, C. E. & Chen, L.-Q. Computer simulation of {3-D} grain growth using a phase-field model. Acta Mater. 50, 3059–3075 (2002).10.1016/S1359-6454(02)00084-8 ↗
68. Materials Commons API GitHub Repository. https://github.com/materials-commons/mcapi/ (2019).
69. PRISMS-PF Materials Commons CLI Plugin GitHub Repository. https://github.com/prisms-center/prismspf_mcapi (2019).
70. Karma, A. & Rappel, W. J. Quantitative phase-field modeling of dendritic growth in two and three dimensions. Phys. Rev. E - Stat. Phys., Plasmas, Fluids, Relat. Interdiscip. Top. https://doi.org/10.1103/PhysRevE.57.4323 (1998).10.1103/PhysRevE.57.4323 ↗