The software design of Gridap: a Finite Element package based on the Julia JIT compiler

09/27/2021
by   Francesc Verdugo, et al.
0

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 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 codes, the main novelty of Gridap is that it implements this API without introducing a DSL 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. 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 and distributed under an MIT license.

READ FULL TEXT

page 7

page 10

page 14

page 16

page 19

page 21

page 22

page 23

research
08/02/2019

A tutorial-driven introduction to the parallel finite element library FEMPAR v1.0.0

This work is a user guide to the FEMPAR scientific software library. FEM...
research
10/03/2019

A user-guide to Gridap – grid-based approximation of partial differential equations in Julia

We present Gridap, a new scientific software library for the numerical a...
research
11/04/2019

Abstractions and automated algorithms for mixed domain finite element methods

Mixed dimensional partial differential equations (PDEs) are equations co...
research
04/13/2022

Modular and Didactic Compiler Design with XML Inter-Phases Communication

In Compiler Design courses, students learn how a program written in high...
research
05/10/2017

TSFC: a structure-preserving form compiler

A form compiler takes a high-level description of the weak form of parti...
research
06/27/2023

Frex: dependently-typed algebraic simplification

We present an extensible, mathematically-structured algebraic simplifica...
research
10/24/2019

The deal.II finite element library: design, features, and insights

deal.II is a state-of-the-art finite element library focused on generali...

Please sign up or login with your details

Forgot password? Click here to reset