TY - JOUR
T1 - The software design of Gridap
T2 - A Finite Element package based on the Julia JIT compiler
AU - Verdugo, Francesc
AU - Badia, Santiago
N1 - Funding Information:
The authors declare the following financial interests/personal relationships which may be considered as potential competing interests: S. Badia acknowledges funding by the Australian Government through the Australian Research Council (project number DP210103092). F. Verdugo acknowledges support from the ?Severo Ochoa Program for Centers of Excellence in R&D (2019-2023)? under the grant CEX2018-000797-S funded by the Ministerio de Ciencia e Innovaci?n (MCIN) ? Agencia Estatal de Investigaci?n (AEI/10.13039/501100011033). S. Badia and F. Verdugo acknowledge funding by the European Commission under the FET-HPC ExaQUte project (Grant agreement ID: 800898) within the Horizon 2020 Framework Programme. S. Badia and F. Verdugo acknowledge funding by the project RTI2018-096898-B-I00 from FEDER/Ministerio de Ciencia e Innovaci?n (MCIN) ? Agencia Estatal de Investigaci?n (AEI/10.13039/501100011033).
Funding Information:
The authors declare the following financial interests/personal relationships which may be considered as potential competing interests: S. Badia acknowledges funding by the Australian Government through the Australian Research Council (project number DP210103092 ). F. Verdugo acknowledges support from the “Severo Ochoa Program for Centers of Excellence in R&D (2019-2023)” under the grant CEX2018-000797-S funded by the Ministerio de Ciencia e Innovación (MCIN) – Agencia Estatal de Investigación (AEI/10.13039/501100011033). S. Badia and F. Verdugo acknowledge funding by the European Commission under the FET-HPC ExaQUte project (Grant agreement ID: 800898 ) within the Horizon 2020 Framework Programme. S. Badia and F. Verdugo acknowledge funding by the project RTI2018-096898-B-I00 from FEDER/ Ministerio de Ciencia e Innovación (MCIN) – Agencia Estatal de Investigación (AEI/10.13039/501100011033).
Publisher Copyright:
© 2022 Elsevier B.V.
PY - 2022/7
Y1 - 2022/7
N2 - We present the software design of Gridap, a novel finite element library written exclusively in the Julia programming language, which is being used by several research groups world-wide to simulate complex physical phenomena such as magnetohydrodynamics, photonics, weather modeling, non-linear solid mechanics, and fluid-structure interaction problems. The library provides a feature-rich set of discretization techniques for the numerical approximation of a wide range of mathematical models governed by Partial Differential Equations (PDEs), including linear, nonlinear, single-field, and multi-field equations. An expressive API allows users to define PDEs in weak form by a syntax close to the mathematical notation. While this is also available in previous frameworks, the main novelty of Gridap is that it implements this API without introducing a domain-specific language plus a compiler of variational forms. Instead, it leverages the Julia just-in-time compiler to build efficient code, specialized for the concrete problem at hand. As a result, there is no need to use different languages for the computational back-end and the user front-end anymore, thus eliminating the so-called two-language problem. Gridap also provides a low-level API that is modular and extensible via the multiple-dispatch paradigm of Julia and provides easy access to the main building blocks of the library if required. The main contribution of this paper is the detailed presentation of the novel software abstractions behind the Gridap design that leverages the new software possibilities provided by the Julia language. The second main contribution of the article is a performance comparison against FEniCS. We measure CPU times needed to assemble discrete systems of linear equations for different problem types and show that the performance of Gridap is comparable to FEniCS, demonstrating that the new software design does not compromise performance. Gridap is freely available at Github (github.com/gridap/Gridap.jl) and distributed under an MIT license. Program summary: Program title: Gridap.jl (version 0.16) CPC Library link to program files: https://doi.org/10.17632/mh9vv7hrgf.1 Developer's repository link: https://github.com/gridap/Gridap.jl Licensing provisions: MIT license Programming language: Julia Supplementary material: Source code of the Listings presented in this paper. Each Listing below indicates the name of its corresponding source file. Nature of problem: Computational simulation of a broad range of application problems governed by partial differential equations including linear, nonlinear, single field, and multi-physics problems. Gridap is currently being used by several research groups world-wide to simulate complex physical phenomena such as magnetohydrodynamics, photonics, weather modeling, non-linear solid mechanics, and fluid-structure interaction problems. Solution method: Arbitrary-order grad-, curl-, and div-conforming finite elements on n-cube and n-simplex meshes. Continuous and Discontinuous Galerkin methods. Newton-Raphson linearization. Krylov subspace iterative solvers. Sparse direct solvers.
AB - We present the software design of Gridap, a novel finite element library written exclusively in the Julia programming language, which is being used by several research groups world-wide to simulate complex physical phenomena such as magnetohydrodynamics, photonics, weather modeling, non-linear solid mechanics, and fluid-structure interaction problems. The library provides a feature-rich set of discretization techniques for the numerical approximation of a wide range of mathematical models governed by Partial Differential Equations (PDEs), including linear, nonlinear, single-field, and multi-field equations. An expressive API allows users to define PDEs in weak form by a syntax close to the mathematical notation. While this is also available in previous frameworks, the main novelty of Gridap is that it implements this API without introducing a domain-specific language plus a compiler of variational forms. Instead, it leverages the Julia just-in-time compiler to build efficient code, specialized for the concrete problem at hand. As a result, there is no need to use different languages for the computational back-end and the user front-end anymore, thus eliminating the so-called two-language problem. Gridap also provides a low-level API that is modular and extensible via the multiple-dispatch paradigm of Julia and provides easy access to the main building blocks of the library if required. The main contribution of this paper is the detailed presentation of the novel software abstractions behind the Gridap design that leverages the new software possibilities provided by the Julia language. The second main contribution of the article is a performance comparison against FEniCS. We measure CPU times needed to assemble discrete systems of linear equations for different problem types and show that the performance of Gridap is comparable to FEniCS, demonstrating that the new software design does not compromise performance. Gridap is freely available at Github (github.com/gridap/Gridap.jl) and distributed under an MIT license. Program summary: Program title: Gridap.jl (version 0.16) CPC Library link to program files: https://doi.org/10.17632/mh9vv7hrgf.1 Developer's repository link: https://github.com/gridap/Gridap.jl Licensing provisions: MIT license Programming language: Julia Supplementary material: Source code of the Listings presented in this paper. Each Listing below indicates the name of its corresponding source file. Nature of problem: Computational simulation of a broad range of application problems governed by partial differential equations including linear, nonlinear, single field, and multi-physics problems. Gridap is currently being used by several research groups world-wide to simulate complex physical phenomena such as magnetohydrodynamics, photonics, weather modeling, non-linear solid mechanics, and fluid-structure interaction problems. Solution method: Arbitrary-order grad-, curl-, and div-conforming finite elements on n-cube and n-simplex meshes. Continuous and Discontinuous Galerkin methods. Newton-Raphson linearization. Krylov subspace iterative solvers. Sparse direct solvers.
KW - Finite Elements
KW - Julia programming language
KW - Mathematical software
KW - Partial Differential Equations
UR - https://www.scopus.com/pages/publications/85127323851
U2 - 10.1016/j.cpc.2022.108341
DO - 10.1016/j.cpc.2022.108341
M3 - Article
AN - SCOPUS:85127323851
SN - 0010-4655
VL - 276
JO - Computer Physics Communications
JF - Computer Physics Communications
M1 - 108341
ER -