sumfem#
sumfem is a library of reusable, summable variational models for FEniCSx.
A model is written once as a component that returns its contribution to a
weak form. Components are described symbolically, without mesh data,
summed with + into the equations of a problem, and extended by
inheritance. The description is then bound to meshes, compiled once, and
solved with DOLFINx and PETSc, in serial or in parallel.
The pages under Getting started introduce the concepts one at a time, from a problem in plain UFL to components, preconditioners, energy functionals and meshes with named markers. The tutorials then treat one topic each in depth, such as units, time stepping and constraints, and the demos solve complete problems, such as a time loop written by hand and the porous electrode of a battery.
Getting started
Tutorials
Electrochemistry
Python API