Bringing PDEs to JAX with forward and reverse modes automatic differentiation

08/31/2023
by   Ivan Yashchuk, et al.
0

Partial differential equations (PDEs) are used to describe a variety of physical phenomena. Often these equations do not have analytical solutions and numerical approximations are used instead. One of the common methods to solve PDEs is the finite element method. Computing derivative information of the solution with respect to the input parameters is important in many tasks in scientific computing. We extend JAX automatic differentiation library with an interface to Firedrake finite element library. High-level symbolic representation of PDEs allows bypassing differentiating through low-level possibly many iterations of the underlying nonlinear solvers. Differentiating through Firedrake solvers is done using tangent-linear and adjoint equations. This enables the efficient composition of finite element solvers with arbitrary differentiable programs. The code is available at github.com/IvanYashchuk/jax-firedrake.

READ FULL TEXT
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
11/01/2021

Escaping the abstraction: a foreign function interface for the Unified Form Language [UFL]

High level domain specific languages for the finite element method under...
research
05/02/2016

High level implementation of geometric multigrid solvers for finite element problems: applications in atmospheric modelling

The implementation of efficient multigrid preconditioners for elliptic p...
research
08/23/2022

Domain Decomposition of Stochastic PDEs: Development of Probabilistic Wirebasket-based Two-level Preconditioners

Realistic physical phenomena exhibit random fluctuations across many sca...
research
05/30/2023

Generating Finite Element Codes combining Adaptive Octrees with Complex Geometries

We present a high-level domain-specific language (DSL) interface to driv...
research
04/08/2022

On the fast assemblage of finite element matrices with application to nonlinear heat transfer problems

The finite element method is a well-established method for the numerical...
research
04/12/2023

Consistent Point Data Assimilation in Firedrake and Icepack

When estimating quantities and fields that are difficult to measure dire...

Please sign up or login with your details

Forgot password? Click here to reset