FEniCS workshop

Contents

FEniCS workshop#

The FEniCS project is a collection of scientific software for solving partial differential equations PDEs with the Finite Element method FEM. The tutorial is currently built for v0.9.x of DOLFINx[BDD+23].

Installation#

For the tutorial it is recommended to use conda. We recommend using the conda-forge implementation of conda. All dependencies used for the tutorial can be installed with the conda environment file environment.yml.

Store this file on your system, and from the folder with the file, run

conda env create -f environment.yml

The environment can then be activated with

conda activate workshop-env

Native Windows installation

Note that on Windows one has to install Microsoft Visual Studio for Just In Time-compilation.

PETSc on Windows

PETSc is not available through conda on native Windows. The first part of this tutorial does not require PETSc. However, for the second part of the tutorial we require PETSc, and thus IntegralType.interior_facet: need to install DOLFINx on Windows using either WSL (and using conda inside WSL) or Docker.

[BDD+23]

Igor A. Baratta, Joseph P. Dean, Jørgen S. Dokken, Michal Habera, Jack S. Hale, Chris N. Richardson, Marie E. Rognes, Matthew W. Scroggs, Nathan Sime, and Garth N. Wells. Dolfinx: the next generation fenics problem solving environment. 2023. doi:10.5281/zenodo.10447666.