How can I use Block Forms, Multiphenicsx, and Lagrange Multipliers to Solve Poisson's Equation with Pure Neumann Boundary Conditions?

The new tutorial in multiphenicsx about this topic is now available at

(joint work with @hherlyng )

Please keep in mind that the link above points to the notebook on the main branch. I do not backport new tutorials to branches related to older dolfinx versions. However, as of now (December 2023), I think that only a couple of minor changes are required for you to run that tutorial with dolfinx 0.6.0. Just download that tutorial and:

  1. replace every dolfinx.fem.functionspace with dolfinx.fem.FunctionSpace,
  2. drop the import of viskex, and every cell containing it. (I started working on viskex after the dolfinx 0.6.0 release).

(Future readers should be aware that items 1 and 2 may not necessarily apply in future, as the tutorial on the main branch may keep changing as dolfinx/multiphenicsx development continues)

3 Likes